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