[转]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

posted @ 2023-05-15 11:06  Ace001  阅读(53)  评论(0编辑  收藏  举报