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