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