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