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