Show / Hide Table of Contents

Class DeliveryTypeRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<DeliveryTypeTableInfo>)

From a TargetedDataRecord<DeliveryTypeTableInfo>, create and populate a DeliveryTypeRecordData POCO object

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

FromSelect(TargetedSelect<DeliveryTypeTableInfo>)

From a TargetedSelect<DeliveryTypeTableInfo>, execute it and return an IEnumerable<DeliveryTypeRecordData> with the results

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

FromSelectAsync(TargetedSelect<DeliveryTypeTableInfo>, CancellationToken)

From a TargetedSelect<DeliveryTypeTableInfo>, execute it and return an IEnumerable<DeliveryTypeRecordData> with the results

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

ToInsertAsync(DeliveryTypeRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<DeliveryTypeRecordData>, CancellationToken)

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

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

ToRecordData(DeliveryTypeRow)

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

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