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