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