Class SORSectionRecordDataExtensions
Extension methods to make it easy to fetch SORSectionRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
SORSectionRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class SORSectionRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<SORSectionTableInfo>)
From a TargetedDataRecord<SORSectionTableInfo>, create and populate a SORSectionRecordData POCO object
Declaration
public static SORSectionRecordData FromRecord(this TargetedDataRecord<SORSectionTableInfo> record)
Parameters
Returns
Examples
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 { SORSectionItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<SORSectionTableInfo>)
From a TargetedSelect<SORSectionTableInfo>, execute it and return an IEnumerable<SORSectionRecordData> with the results
Declaration
public static IEnumerable<SORSectionRecordData> FromSelect(this TargetedSelect<SORSectionTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<SORSectionTableInfo>, CancellationToken)
From a TargetedSelect<SORSectionTableInfo>, execute it and return an IEnumerable<SORSectionRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<SORSectionRecordData> FromSelectAsync(this TargetedSelect<SORSectionTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(SORSectionRecordData, CancellationToken)
Extension methods to make it easy to fetch SORSectionRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this SORSectionRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<SORSectionRecordData>, CancellationToken)
Extension methods to make it easy to fetch SORSectionRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<SORSectionRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(SORSectionRow)
Extension methods to make it easy to fetch SORSectionRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static SORSectionRecordData ToRecordData(this SORSectionRow row)
Parameters
Returns