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