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