Class DashboardThemeRecordDataExtensions
Extension methods to make it easy to fetch DashboardThemeRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
DashboardThemeRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class DashboardThemeRecordDataExtensions
Methods
Declaration
public static DashboardThemeRecordData FromRecord(this TargetedDataRecord<DashboardThemeTableInfo> record)
Parameters
Returns
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 { DashboardThemeItem = r.FromRecord(), /* fetch other fields here */ });
From a TargetedSelect<DashboardThemeTableInfo>, execute it and return an IEnumerable<DashboardThemeRecordData> with the results
Declaration
public static IEnumerable<DashboardThemeRecordData> FromSelect(this TargetedSelect<DashboardThemeTableInfo> select)
Parameters
Returns
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
From a TargetedSelect<DashboardThemeTableInfo>, execute it and return an IEnumerable<DashboardThemeRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<DashboardThemeRecordData> FromSelectAsync(this TargetedSelect<DashboardThemeTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(DashboardThemeRecordData, CancellationToken)
Extension methods to make it easy to fetch DashboardThemeRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this DashboardThemeRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<DashboardThemeRecordData>, CancellationToken)
Extension methods to make it easy to fetch DashboardThemeRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<DashboardThemeRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(DashboardThemeRow)
Extension methods to make it easy to fetch DashboardThemeRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static DashboardThemeRecordData ToRecordData(this DashboardThemeRow row)
Parameters
Returns