Show / Hide Table of Contents

Class TargetDimensionRecordDataExtensions

Extension methods to make it easy to fetch TargetDimensionRecordData objects from the database, using the TargetedSelect infrastructure

Inheritance
object
TargetDimensionRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class TargetDimensionRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<TargetDimensionTableInfo>)

From a TargetedDataRecord<TargetDimensionTableInfo>, create and populate a TargetDimensionRecordData POCO object

Declaration
public static TargetDimensionRecordData FromRecord(this TargetedDataRecord<TargetDimensionTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<TargetDimensionTableInfo> record
Returns
Type Description
TargetDimensionRecordData
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
Type Name Description
TargetedSelect<TargetDimensionTableInfo> select
Returns
Type Description
IEnumerable<TargetDimensionRecordData>
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
Type Name Description
TargetedSelect<TargetDimensionTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<TargetDimensionRecordData>
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
Type Name Description
TargetDimensionRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

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
Type Name Description
IEnumerable<TargetDimensionRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

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
Type Name Description
TargetDimensionRow row
Returns
Type Description
TargetDimensionRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top