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