Show / Hide Table of Contents

Class DeliveryTermsRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<DeliveryTermsTableInfo>)

From a TargetedDataRecord<DeliveryTermsTableInfo>, create and populate a DeliveryTermsRecordData POCO object

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

FromSelect(TargetedSelect<DeliveryTermsTableInfo>)

From a TargetedSelect<DeliveryTermsTableInfo>, execute it and return an IEnumerable<DeliveryTermsRecordData> with the results

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

FromSelectAsync(TargetedSelect<DeliveryTermsTableInfo>, CancellationToken)

From a TargetedSelect<DeliveryTermsTableInfo>, execute it and return an IEnumerable<DeliveryTermsRecordData> with the results

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

ToInsertAsync(DeliveryTermsRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<DeliveryTermsRecordData>, CancellationToken)

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

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

ToRecordData(DeliveryTermsRow)

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

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