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();
FromSelectAsync(TargetedSelect<DashboardTileTableInfo>, CancellationToken)
From a TargetedSelect<DashboardTileTableInfo>, execute it and return an IEnumerable<DashboardTileRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<DashboardTileRecordData> FromSelectAsync(this TargetedSelect<DashboardTileTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(DashboardTileRecordData, CancellationToken)
Extension methods to make it easy to fetch DashboardTileRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this DashboardTileRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<DashboardTileRecordData>, CancellationToken)
Extension methods to make it easy to fetch DashboardTileRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<DashboardTileRecordData> records, CancellationToken cancellationToken = default)
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