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