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