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