Class SShipmentRecordDataExtensions
Extension methods to make it easy to fetch SShipmentRecordData objects from the database,
using the infrastructure
Inheritance
SShipmentRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class SShipmentRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<SShipmentTableInfo>)
From a TargetedDataRecord<SShipmentTableInfo>, create and populate a SShipmentRecordData POCO object
Declaration
public static SShipmentRecordData FromRecord(this TargetedDataRecord<SShipmentTableInfo> 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 { SShipmentItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<SShipmentTableInfo>)
From a TargetedSelect<SShipmentTableInfo>, execute it and return an IEnumerable<SShipmentRecordData> with the results
Declaration
public static IEnumerable<SShipmentRecordData> FromSelect(this TargetedSelect<SShipmentTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(SShipmentRecordData)
Extension methods to make it easy to fetch SShipmentRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this SShipmentRecordData record)
Parameters
Returns
ToInserts(IEnumerable<SShipmentRecordData>)
Extension methods to make it easy to fetch SShipmentRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<SShipmentRecordData> records)
Parameters
Returns
ToRecordData(SShipmentRow)
Extension methods to make it easy to fetch SShipmentRecordData objects from the database,
using the infrastructure
Declaration
public static SShipmentRecordData ToRecordData(this SShipmentRow row)
Parameters
Returns