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