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