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