DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | List of all members
Deveel.Data.Diagnostics.QueryEvent Class Reference
Inheritance diagram for Deveel.Data.Diagnostics.QueryEvent:
Deveel.Data.Diagnostics.Event Deveel.Data.Diagnostics.IEvent

Public Member Functions

 QueryEvent (SqlQuery query)
 

Protected Member Functions

override void GetEventData (Dictionary< string, object > data)
 
- Protected Member Functions inherited from Deveel.Data.Diagnostics.Event
 Event ()
 
 Event (DateTimeOffset timeStamp)
 
virtual IEventSource OnSourceGet (IEventSource eventSource)
 
virtual IEventSource OnSourceSet (IEventSource eventSource)
 

Properties

SqlQuery Query [get, private set]
 
- Properties inherited from Deveel.Data.Diagnostics.Event
IEventSource EventSource [get, set]
 
DateTimeOffset TimeStamp [get, private set]
 
IDictionary< string, object > IEvent. EventData [get]
 
- Properties inherited from Deveel.Data.Diagnostics.IEvent
IEventSource EventSource [get, set]
 Gets the event source. More...
 
DateTimeOffset TimeStamp [get]
 
IDictionary< string, object > EventData [get]
 Gets additional event data that come with the event. More...
 

Detailed Description

Definition at line 7 of file QueryEvent.cs.

Constructor & Destructor Documentation

Deveel.Data.Diagnostics.QueryEvent.QueryEvent ( SqlQuery  query)
inline

Definition at line 8 of file QueryEvent.cs.

8  {
9  if (query == null)
10  throw new ArgumentNullException("query");
11 
12  Query = query;
13  }

Member Function Documentation

override void Deveel.Data.Diagnostics.QueryEvent.GetEventData ( Dictionary< string, object >  data)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Diagnostics.Event.

Definition at line 17 of file QueryEvent.cs.

17  {
18  data["query.text"] = Query.Text;
19  data["query.paramStyle"] = Query.ParameterStyle;
20 
21  int i = 0;
22  foreach (var parameter in Query.Parameters) {
23  data[String.Format("query.param[{0}].name", i)] = parameter.Name;
24  data[String.Format("query.param[{0}].type", i)] = parameter.SqlType.ToString();
25  data[String.Format("query.param[{0}].value", i)] = parameter.Value;
26 
27  i++;
28  }
29  }
A long string in the system.
QueryParameterStyle ParameterStyle
Definition: SqlQuery.cs:55
ICollection< QueryParameter > Parameters
Definition: SqlQuery.cs:53

Property Documentation

SqlQuery Deveel.Data.Diagnostics.QueryEvent.Query
getprivate set

Definition at line 15 of file QueryEvent.cs.


The documentation for this class was generated from the following file: