1 instantiation of SqlEventSource
System.Data (1)
fx\src\data\System\Data\Common\SqlEventSource.cs (1)
29
internal static readonly SqlEventSource Log = new
SqlEventSource
();
10 references to SqlEventSource
System.Data (10)
fx\src\data\System\Data\Common\SqlEventSource.cs (6)
13
[EventSource(Name =
SqlEventSource
.EventSourceName)]
29
internal static readonly
SqlEventSource
Log = new SqlEventSource();
58
[Event(
SqlEventSource
.BeginExecuteEventId, Keywords = Keywords.SqlClient)]
63
WriteEvent(
SqlEventSource
.BeginExecuteEventId, objectId, dataSource, database, commandText);
70
[Event(
SqlEventSource
.EndExecuteEventId, Keywords = Keywords.SqlClient)]
73
WriteEvent(
SqlEventSource
.EndExecuteEventId, objectId, compositeState, sqlExceptionNumber);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (4)
6351
if (
SqlEventSource
.Log.IsEnabled() && Connection != null)
6354
SqlEventSource
.Log.BeginExecute(GetHashCode(), Connection.DataSource, Connection.Database, commandText);
6366
if (
SqlEventSource
.Log.IsEnabled())
6382
SqlEventSource
.Log.EndExecute(GetHashCode(), compositeState, sqlExceptionNumber.GetValueOrDefault());