In dotnetcore, startup.cs, ConfigureServices, DbContext options is missing UseOracle()

北城余情 提交于 2019-12-23 05:15:38

问题


Where is the option for "UseOracle" ? services.AddDbContext(options => options.useoracle()

I believe I've included the required DLL's.

Screenshot provided: https://pasteboard.co/HuVDEfB.png

Any help is much appreciated.


回答1:


Try this

using Oracle.EntityFrameworkCore;


来源:https://stackoverflow.com/questions/51390383/in-dotnetcore-startup-cs-configureservices-dbcontext-options-is-missing-useor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!