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