Show / Hide Table of Contents

Class SShipmentAddrRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SShipmentAddrTableInfo>)

From a TargetedDataRecord<SShipmentAddrTableInfo>, create and populate a SShipmentAddrRecordData POCO object

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

FromSelect(TargetedSelect<SShipmentAddrTableInfo>)

From a TargetedSelect<SShipmentAddrTableInfo>, execute it and return an IEnumerable<SShipmentAddrRecordData> with the results

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

FromSelectAsync(TargetedSelect<SShipmentAddrTableInfo>, CancellationToken)

From a TargetedSelect<SShipmentAddrTableInfo>, execute it and return an IEnumerable<SShipmentAddrRecordData> with the results

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

ToInsertAsync(SShipmentAddrRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<SShipmentAddrRecordData>, CancellationToken)

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

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

ToRecordData(SShipmentAddrRow)

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

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