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