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