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