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