Show / Hide Table of Contents

Class PaymentTermsRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PaymentTermsTableInfo>)

From a TargetedDataRecord<PaymentTermsTableInfo>, create and populate a PaymentTermsRecordData POCO object

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

FromSelect(TargetedSelect<PaymentTermsTableInfo>)

From a TargetedSelect<PaymentTermsTableInfo>, execute it and return an IEnumerable<PaymentTermsRecordData> with the results

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

FromSelectAsync(TargetedSelect<PaymentTermsTableInfo>, CancellationToken)

From a TargetedSelect<PaymentTermsTableInfo>, execute it and return an IEnumerable<PaymentTermsRecordData> with the results

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

ToInsertAsync(PaymentTermsRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<PaymentTermsRecordData>, CancellationToken)

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

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

ToRecordData(PaymentTermsRow)

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

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