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