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