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