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