Show / Hide Table of Contents

Class ShipmentTypeReservationRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ShipmentTypeReservationTableInfo>)

From a TargetedDataRecord<ShipmentTypeReservationTableInfo>, create and populate a ShipmentTypeReservationRecordData POCO object

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

FromSelect(TargetedSelect<ShipmentTypeReservationTableInfo>)

From a TargetedSelect<ShipmentTypeReservationTableInfo>, execute it and return an IEnumerable<ShipmentTypeReservationRecordData> with the results

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

FromSelectAsync(TargetedSelect<ShipmentTypeReservationTableInfo>, CancellationToken)

From a TargetedSelect<ShipmentTypeReservationTableInfo>, execute it and return an IEnumerable<ShipmentTypeReservationRecordData> with the results

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

ToInsertAsync(ShipmentTypeReservationRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ShipmentTypeReservationRecordData>, CancellationToken)

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

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

ToRecordData(ShipmentTypeReservationRow)

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

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