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