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