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