LinqConnect Documentation
Devart.Data.Linq.Monitoring Namespace / LinqMonitor Class
Members

LinqMonitor Class
Monitors dynamic SQL execution in applications that use LinqConnect.
Syntax
'Declaration
 
Public Class LinqMonitor 
   Inherits DbMonitor
   Implements System.ComponentModel.IComponentSystem.IDisposable 
 
Remarks

To enable monitoring just drop LinqMonitor component to the form and set IsActive property to true. If DBMonitor application has already been started you can see messages and SQL statements that your application executes. For monitoring you need only one LinqMonitor component on any of the forms your application consists of.

For example on how to trap SQL events in your application please refer to description of TraceEvent event of DbMonitor.

For monitoring multithreaded applications with DBMonitor tool you have to specify ApartmentState.MTA attribute as shown in the example below.

See also Using DBMonitor and LinqMonitor topic.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also