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