Class PriceUnitRecordDataExtensions
Extension methods to make it easy to fetch PriceUnitRecordData objects from the database,
using the infrastructure
Inheritance
PriceUnitRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class PriceUnitRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<PriceUnitTableInfo>)
From a TargetedDataRecord<PriceUnitTableInfo>, create and populate a PriceUnitRecordData POCO object
Declaration
public static PriceUnitRecordData FromRecord(this TargetedDataRecord<PriceUnitTableInfo> 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 { PriceUnitItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<PriceUnitTableInfo>)
From a TargetedSelect<PriceUnitTableInfo>, execute it and return an IEnumerable<PriceUnitRecordData> with the results
Declaration
public static IEnumerable<PriceUnitRecordData> FromSelect(this TargetedSelect<PriceUnitTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(PriceUnitRecordData)
Extension methods to make it easy to fetch PriceUnitRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this PriceUnitRecordData record)
Parameters
Returns
ToInserts(IEnumerable<PriceUnitRecordData>)
Extension methods to make it easy to fetch PriceUnitRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<PriceUnitRecordData> records)
Parameters
Returns
ToRecordData(PriceUnitRow)
Extension methods to make it easy to fetch PriceUnitRecordData objects from the database,
using the infrastructure
Declaration
public static PriceUnitRecordData ToRecordData(this PriceUnitRow row)
Parameters
Returns