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