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