Show / Hide Table of Contents

Class PaymentTypeHeadingLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PaymentTypeHeadingLinkTableInfo>)

From a TargetedDataRecord<PaymentTypeHeadingLinkTableInfo>, create and populate a PaymentTypeHeadingLinkRecordData POCO object

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

FromSelect(TargetedSelect<PaymentTypeHeadingLinkTableInfo>)

From a TargetedSelect<PaymentTypeHeadingLinkTableInfo>, execute it and return an IEnumerable<PaymentTypeHeadingLinkRecordData> with the results

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

FromSelectAsync(TargetedSelect<PaymentTypeHeadingLinkTableInfo>, CancellationToken)

From a TargetedSelect<PaymentTypeHeadingLinkTableInfo>, execute it and return an IEnumerable<PaymentTypeHeadingLinkRecordData> with the results

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

ToInsertAsync(PaymentTypeHeadingLinkRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<PaymentTypeHeadingLinkRecordData>, CancellationToken)

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

ToRecordData(PaymentTypeHeadingLinkRow)

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