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