Show / Hide Table of Contents

Class AssociateHeadingLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<AssociateHeadingLinkTableInfo>)

From a TargetedDataRecord<AssociateHeadingLinkTableInfo>, create and populate a AssociateHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<AssociateHeadingLinkTableInfo>)

From a TargetedSelect<AssociateHeadingLinkTableInfo>, execute it and return an IEnumerable<AssociateHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<AssociateHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<AssociateHeadingLinkTableInfo>, execute it and return an IEnumerable<AssociateHeadingLinkRecordData> with the results

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

ToInsertAsync(AssociateHeadingLinkRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<AssociateHeadingLinkRecordData>, CancellationToken)

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

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

ToRecordData(AssociateHeadingLinkRow)

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

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