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