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