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