Class FormRecordDataExtensions
Extension methods to make it easy to fetch FormRecordData objects from the database,
using the infrastructure
Inheritance
FormRecordDataExtensions
Assembly: SoDataBase.dll
public static class FormRecordDataExtensions : Object
Methods
From a TargetedDataRecord<FormTableInfo>, create and populate a FormRecordData POCO object
Declaration
public static FormRecordData FromRecord(this TargetedDataRecord<FormTableInfo> 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 { FormItem = r.FromRecord(), /* fetch other fields here */ });
From a TargetedSelect<FormTableInfo>, execute it and return an IEnumerable<FormRecordData> with the results
Declaration
public static IEnumerable<FormRecordData> FromSelect(this TargetedSelect<FormTableInfo> 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 FormRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this FormRecordData record)
Parameters
Returns
Extension methods to make it easy to fetch FormRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<FormRecordData> records)
Parameters
Returns
Extension methods to make it easy to fetch FormRecordData objects from the database,
using the infrastructure
Declaration
public static FormRecordData ToRecordData(this FormRow row)
Parameters
Returns