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