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