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: SuperOfficeCRMRows
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
TargetedDataRecordDeliveryTermsTableInfo 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
TargetedSelectDeliveryTermsTableInfo select
Returns
Type Description
IEnumerableDeliveryTermsRecordData
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
TargetedSelectDeliveryTermsTableInfo select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerableDeliveryTermsRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(DeliveryTermsRecordData, CancellationToken)

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

ToInsertsAsync(IEnumerable<DeliveryTermsRecordData>, CancellationToken)

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

ToRecordData(DeliveryTermsRow)

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