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