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