-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the LogSqlDependency method signature #286
Comments
We can indeed move from the
Something like this? (yes, of course with deprecation on the current ones). |
Don't know why this one is closed, as the tableName and operationName are still mandatory in this method. |
Ah, it is just not released yet ? |
That's right. The other methods without the dependency ID aren't updated, though, so maybe we should also create alternatives for those ones? |
The
LogSqlDependency
extension method onILogger
has a parameter which is calledtableName
.This is a bit shortcoming as, when you want to log a dependency on SQL server, you execute (in most cases) a query that touches multiple tables.
This
tableName
parameter is used to build up thedependencyName
:It makes no sense to pass in a single tablename if you perform a SQL query that touches multiple tables, so it would be better if we:
tableName
parameter to something more generic:sqlCommand
orsqlCommandInfo
dependencyName
. Only the database-name should be in the dependency name.sqlCommand
/sqlCommandInfo
parameter can be logged as a contextual item / dimensionsqlCommand
/sqlCommandInfo
parameter should not be considered as mandatory, so we should not guard it.See also this dicussion: #265
The text was updated successfully, but these errors were encountered: