戴维民,乐邦卡盟,校园新闻联播
{ "connectionstrings": { "defaultconnection": "server=localhost;database=typecho;uid=root;pwd=woshishui;" }, "logging": { "loglevel": { "default": "information", "microsoft": "warning", "microsoft.hosting.lifetime": "information" } }, "allowedhosts": "*" }
 services.adddbcontext<typechocontext>(options=>options.usemysql(configuration.getconnectionstring("defaultconnection")));
// other service configurations go here // replace "yourdbcontext" with the class name of your dbcontext services.adddbcontextpool<typechocontext>(options => options // // replace with your connection string .usemysql("server=localhost;database=typecho;user=root;password=woshishui;", mysqloptions => mysqloptions // // replace with your server version and type .serverversion(new serverversion(new version(8, 0, 19), servertype.mysql)) // ));
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Net Core Web Api项目与在NginX下发布的方法
asp.net core3.1 引用的元包dll版本兼容性问题解决方案
IdentityServer4实现.Net Core API接口权限认证(快速入门)
ASP.NET Core MVC通过IViewLocationExpander扩展视图搜索路径的实现
网友评论