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