Class EjpackageRecordDataExtensions
Extension methods to make it easy to fetch EjpackageRecordData objects from the database,
using the infrastructure
Inheritance
EjpackageRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class EjpackageRecordDataExtensions : Object
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();
ToInsert(EjpackageRecordData)
Extension methods to make it easy to fetch EjpackageRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this EjpackageRecordData record)
Parameters
Returns
ToInserts(IEnumerable<EjpackageRecordData>)
Extension methods to make it easy to fetch EjpackageRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<EjpackageRecordData> records)
Parameters
Returns
ToRecordData(EjpackageRow)
Extension methods to make it easy to fetch EjpackageRecordData objects from the database,
using the infrastructure
Declaration
public static EjpackageRecordData ToRecordData(this EjpackageRow row)
Parameters
Returns