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