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