Show / Hide Table of Contents

Class AssociateHistoryRecordDataExtensions

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

Inheritance
object
AssociateHistoryRecordDataExtensions
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 AssociateHistoryRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<AssociateHistoryTableInfo>)

From a TargetedDataRecord<AssociateHistoryTableInfo>, create and populate a AssociateHistoryRecordData POCO object

Declaration
public static AssociateHistoryRecordData FromRecord(this TargetedDataRecord<AssociateHistoryTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<AssociateHistoryTableInfo> record
Returns
Type Description
AssociateHistoryRecordData
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 { AssociateHistoryItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<AssociateHistoryTableInfo>)

From a TargetedSelect<AssociateHistoryTableInfo>, execute it and return an IEnumerable<AssociateHistoryRecordData> with the results

Declaration
public static IEnumerable<AssociateHistoryRecordData> FromSelect(this TargetedSelect<AssociateHistoryTableInfo> select)
Parameters
Type Name Description
TargetedSelect<AssociateHistoryTableInfo> select
Returns
Type Description
IEnumerable<AssociateHistoryRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

FromSelectAsync(TargetedSelect<AssociateHistoryTableInfo>, CancellationToken)

From a TargetedSelect<AssociateHistoryTableInfo>, execute it and return an IEnumerable<AssociateHistoryRecordData> with the results

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<AssociateHistoryRecordData> FromSelectAsync(this TargetedSelect<AssociateHistoryTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelect<AssociateHistoryTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<AssociateHistoryRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(AssociateHistoryRecordData, CancellationToken)

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

Declaration
public static Task<Insert> ToInsertAsync(this AssociateHistoryRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
AssociateHistoryRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

ToInsertsAsync(IEnumerable<AssociateHistoryRecordData>, CancellationToken)

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

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<AssociateHistoryRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<AssociateHistoryRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

ToRecordData(AssociateHistoryRow)

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

Declaration
public static AssociateHistoryRecordData ToRecordData(this AssociateHistoryRow row)
Parameters
Type Name Description
AssociateHistoryRow row
Returns
Type Description
AssociateHistoryRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top