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