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