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