-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Database target entity framework connection string #2510
Database target entity framework connection string #2510
Conversation
bbf200e
to
48a35a7
Compare
Codecov Report
@@ Coverage Diff @@
## master #2510 +/- ##
=======================================
- Coverage 82% 82% -<1%
=======================================
Files 323 323
Lines 23352 23375 +23
Branches 2916 2920 +4
=======================================
+ Hits 19037 19051 +14
- Misses 3546 3554 +8
- Partials 769 770 +1 |
48a35a7
to
c129534
Compare
|
||
databaseTarget.Initialize(null); | ||
Assert.NotNull(databaseTarget.ProviderFactory); | ||
Assert.Equal(typeof(SqlClientFactory), databaseTarget.ProviderFactory.GetType()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add an assert here for the connectionstring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
c129534
to
b8e8a5f
Compare
thx! |
Embedded the code from #2308 directly into DatabaseTarget. Resolves #98
Since "provider" is a common keyword in the connectionstring, and no one have requested NLog to parse it, then I have decided to only parse it when the connectionstring seems to come from entity framework.