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