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