Class ItemConfigRecordDataExtensions
Extension methods to make it easy to fetch ItemConfigRecordData objects from the database,
using the infrastructure
Inheritance
System.Object
ItemConfigRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class ItemConfigRecordDataExtensions : Object
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();
ToInsert(ItemConfigRecordData)
Declaration
public static Insert ToInsert(this ItemConfigRecordData record)
Parameters
Returns
ToInserts(IEnumerable<ItemConfigRecordData>)
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<ItemConfigRecordData> records)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Insert> |
|
ToRecordData(ItemConfigRow)
Declaration
public static ItemConfigRecordData ToRecordData(this ItemConfigRow row)
Parameters
Returns