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