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