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