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