nbarbettini / little-aspnetcore-book

The Little ASP.NET Core Book, a friendly introduction to web programming and ASP.NET Core 2.0

Home Page:http://littleasp.net/book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why don't we use AddDbContextPool instead of AddDbContext?

sadqiang opened this issue · comments

New features in EF Core 2.0 explains there is AddDbContextPool for gaining high performance. Why don't we use it?

Looks like a really cool feature!

Why don't we use it?

It's out of scope for this simple project. This book doesn't try to teach readers everything about EF Core. There are dedicated EF Core books just for that (if not, you should write one! 😄). The goal of this book is to get the reader interested in learning more.