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