- Mastering Entity Framework Core 2.0
- Prabhakaran Anbazhagan
- 42字
- 2021-07-02 21:16:40
Registering context in services (.NET Core DI)
The warning displayed in the OnConfiguring(DbContextOptionsBuilder optionsBuilder) method needs to be addressed. So let's remove that method (highlighted in the following code) and perform configuration inside the Startup.cs file using dependency injection.
推薦閱讀
- SpringMVC+MyBatis快速開發與項目實戰
- Interactive Data Visualization with Python
- 碼上行動:零基礎學會Python編程(ChatGPT版)
- 基于免疫進化的算法及應用研究
- Python Data Analysis(Second Edition)
- 深入RabbitMQ
- Python Web數據分析可視化:基于Django框架的開發實戰
- Learning ArcGIS for Desktop
- Bootstrap 4 Cookbook
- 一本書講透Java線程:原理與實踐
- 后臺開發:核心技術與應用實踐
- Webpack實戰:入門、進階與調優(第2版)
- Python趣味編程與精彩實例
- Mastering Gephi Network Visualization
- QlikView Unlocked