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