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