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