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