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