[转]efcore 数据库链接池
services.AddDbContextPool<DbContext1>(optionsBuilder =>
optionsBuilder.UseDm(Configuration.GetConnectionString("DB")),500
);
转自:https://www.cnblogs.com/xhubobo/p/16163949.html
更多详解:
EF2.0新特性DbContext Pooling https://www.cnblogs.com/JulianHuang/p/12074483.html
作者:xuejianxiyang
出处:http://xuejianxiyang.cnblogs.com
关于作者:Heaven helps those who help themselves.
本文版权归原作者和博客园共有,欢迎转载,但未经原作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。