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