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