Class ProductCategoryRecordDataExtensions
Inheritance
ProductCategoryRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class ProductCategoryRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<ProductCategoryTableInfo>)
Declaration
public static ProductCategoryRecordData FromRecord(this TargetedDataRecord<ProductCategoryTableInfo> 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 { ProductCategoryItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<ProductCategoryTableInfo>)
From a TargetedSelect<ProductCategoryTableInfo>, execute it and return an IEnumerable<ProductCategoryRecordData> with the results
Declaration
public static IEnumerable<ProductCategoryRecordData> FromSelect(this TargetedSelect<ProductCategoryTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(ProductCategoryRecordData)
Declaration
public static Insert ToInsert(this ProductCategoryRecordData record)
Parameters
Returns
ToInserts(IEnumerable<ProductCategoryRecordData>)
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<ProductCategoryRecordData> records)
Parameters
Returns
ToRecordData(ProductCategoryRow)
Declaration
public static ProductCategoryRecordData ToRecordData(this ProductCategoryRow row)
Parameters
Returns