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