CosmosQueryExecutedEventData Constructors

Definition

Overloads

CosmosQueryExecutedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, TimeSpan, Double, String, String, Nullable<PartitionKey>, IReadOnlyList<ValueTuple<String,Object>>, String, Boolean)

Source:
CosmosQueryExecutedEventData.cs

Constructs the event payload.

C#
public CosmosQueryExecutedEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, TimeSpan elapsed, double requestCharge, string activityId, string containerId, Microsoft.Azure.Cosmos.PartitionKey? partitionKeyValue, System.Collections.Generic.IReadOnlyList<(string Name, object? Value)> parameters, string querySql, bool logSensitiveData);

Parameters

eventDefinition
EventDefinitionBase

The event definition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

A delegate that generates a log message for this event.

elapsed
TimeSpan

The time elapsed since the command was sent to the database.

requestCharge
Double

The request charge in RU.

activityId
String

The activity ID.

containerId
String

The ID of the Cosmos container being queried.

partitionKeyValue
Nullable<PartitionKey>

The key value of the Cosmos partition that the query is using.

parameters
IReadOnlyList<ValueTuple<String,Object>>

Name/values for each parameter in the Cosmos Query.

querySql
String

The SQL representing the query.

logSensitiveData
Boolean

Indicates whether the application allows logging of sensitive data.

Applies to

Entity Framework Core 9.0
Toode Versioonid
Entity Framework Core 9.0

CosmosQueryExecutedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, TimeSpan, Double, String, String, String, IReadOnlyList<ValueTuple<String, Object>>, String, Boolean)

Source:
CosmosQueryExecutedEventData.cs
Source:
CosmosQueryExecutedEventData.cs
Source:
CosmosQueryExecutedEventData.cs

Constructs the event payload.

C#
public CosmosQueryExecutedEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, TimeSpan elapsed, double requestCharge, string activityId, string containerId, string? partitionKey, System.Collections.Generic.IReadOnlyList<(string Name, object? Value)> parameters, string querySql, bool logSensitiveData);

Parameters

eventDefinition
EventDefinitionBase

The event definition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

A delegate that generates a log message for this event.

elapsed
TimeSpan

The time elapsed since the command was sent to the database.

requestCharge
Double

The request charge in RU.

activityId
String

The activity ID.

containerId
String

The ID of the Cosmos container being queried.

partitionKey
String

The key of the Cosmos partition that the query is using.

parameters
IReadOnlyList<ValueTuple<String,Object>>

Name/values for each parameter in the Cosmos Query.

querySql
String

The SQL representing the query.

logSensitiveData
Boolean

Indicates whether the application allows logging of sensitive data.

Applies to

Entity Framework Core 8.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 6.0, 7.0, 8.0