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