Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose ApplicationDbContext Class in (under IdentityModels.cs file) ASP.NET MVC 5?

I have seen this ApplicationDbContext class in identity models.cs in mvc Template and I am not understanding exactly what is the purpose of this class and how it works. Please shed some light on that.

like image 381
Aswajith Avatar asked Nov 09 '22 16:11

Aswajith


1 Answers

Assuming you're talking about an asp.net-mvc-5 application: For the default templates, ApplicationDbContext is used for all the ASP.NET Identity database CRUD operations.

If you don't know whats an Entity DBContext is, consider reading this guide.

like image 81
Emmanuel M. Avatar answered Jan 04 '23 02:01

Emmanuel M.