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