Extension methods to make it easy to fetch ExtraTablesRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
ExtraTablesRecordDataExtensions
Assembly: SoDataBase.dll
public static class ExtraTablesRecordDataExtensions
Methods
Declaration
public static ExtraTablesRecordData FromRecord(this TargetedDataRecord<ExtraTablesTableInfo> record)
Parameters
Returns
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
/* add joins, return fields etc. as you wish */
s.ReturnFields.Add(s.Table.All);
var result = s.Records().Select(r => new { ExtraTablesItem = r.FromRecord(), /* fetch other fields here */ });
From a TargetedSelect<ExtraTablesTableInfo>, execute it and return an IEnumerable<ExtraTablesRecordData> with the results
Declaration
public static IEnumerable<ExtraTablesRecordData> FromSelect(this TargetedSelect<ExtraTablesTableInfo> select)
Parameters
Returns
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
From a TargetedSelect<ExtraTablesTableInfo>, execute it and return an IEnumerable<ExtraTablesRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<ExtraTablesRecordData> FromSelectAsync(this TargetedSelect<ExtraTablesTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
Extension methods to make it easy to fetch ExtraTablesRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this ExtraTablesRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
Extension methods to make it easy to fetch ExtraTablesRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<ExtraTablesRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
Extension methods to make it easy to fetch ExtraTablesRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static ExtraTablesRecordData ToRecordData(this ExtraTablesRow row)
Parameters
Returns