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