Show / Hide Table of Contents

Class PaymentTermsHeadingLinkRecordDataExtensions

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

Inheritance
object
PaymentTermsHeadingLinkRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeCRMRows
Assembly: SoDataBase.dll
Syntax
public static class PaymentTermsHeadingLinkRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<PaymentTermsHeadingLinkTableInfo>)

From a TargetedDataRecord<PaymentTermsHeadingLinkTableInfo>, create and populate a PaymentTermsHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<PaymentTermsHeadingLinkTableInfo>)

From a TargetedSelect<PaymentTermsHeadingLinkTableInfo>, execute it and return an IEnumerable<PaymentTermsHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<PaymentTermsHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<PaymentTermsHeadingLinkTableInfo>, execute it and return an IEnumerable<PaymentTermsHeadingLinkRecordData> with the results

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

ToInsertAsync(PaymentTermsHeadingLinkRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<PaymentTermsHeadingLinkRecordData>, CancellationToken)

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

ToRecordData(PaymentTermsHeadingLinkRow)

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