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