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