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