Class ShipmentTypeRecordDataExtensions
Extension methods to make it easy to fetch ShipmentTypeRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
ShipmentTypeRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class ShipmentTypeRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<ShipmentTypeTableInfo>)
Declaration
public static ShipmentTypeRecordData FromRecord(this TargetedDataRecord<ShipmentTypeTableInfo> record)
Parameters
Returns
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 { ShipmentTypeItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<ShipmentTypeTableInfo>)
From a TargetedSelect<ShipmentTypeTableInfo>, execute it and return an IEnumerable<ShipmentTypeRecordData> with the results
Declaration
public static IEnumerable<ShipmentTypeRecordData> FromSelect(this TargetedSelect<ShipmentTypeTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<ShipmentTypeTableInfo>, CancellationToken)
From a TargetedSelect<ShipmentTypeTableInfo>, execute it and return an IEnumerable<ShipmentTypeRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<ShipmentTypeRecordData> FromSelectAsync(this TargetedSelect<ShipmentTypeTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(ShipmentTypeRecordData, CancellationToken)
Extension methods to make it easy to fetch ShipmentTypeRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this ShipmentTypeRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<ShipmentTypeRecordData>, CancellationToken)
Extension methods to make it easy to fetch ShipmentTypeRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<ShipmentTypeRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(ShipmentTypeRow)
Extension methods to make it easy to fetch ShipmentTypeRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static ShipmentTypeRecordData ToRecordData(this ShipmentTypeRow row)
Parameters
Returns