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