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