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