We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
希望增加sqlsugar的日志功能
The text was updated successfully, but these errors were encountered:
1、我在仓储层,本来是写了一个自定义的日志记录,没有用Log4,只是一个简单的日志输出; 2、刚刚试了试,我把LogHelper,移动到了 Common 层,但是在 Repository 层的 DbContext.cs 中依旧不能使用构造函数注入; 3、因为 DbContext 这个实体类并没有自己的接口,而且API层也解耦了 Repository 层,所以,我是这么用的,
4、如果你想在 BaseRepository 中注入的话,就需要在每一个子类仓储中都注入,改动太大
Sorry, something went wrong.
我还没想到那种,只需要在父类构造函数注入,而不用管子类的
那就要考虑日志这块不能用注入了
Merge pull request #10 from anjoy8/master
f9a8d63
同步主分支
No branches or pull requests
希望增加sqlsugar的日志功能
The text was updated successfully, but these errors were encountered: