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