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