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