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