Local speaking session on “ASP.NET MVC5: Basic Login & Database First Approach” was held @ Microsoft Innovation Center (MIC), Lahore on 03-Apr-2017.
There has been a lot of buzz about entity framework in tech world. The reason is simple entity framework is an overwhelming development communicator between our physical database engines and our code base. Entity framework in ASP.NET MVC5 platform offers following three approaches to connect with database i.e.
- Code First Approach.
- Model First Approach.
- Database First Approach.
Today, I shall be demonstrating a simple code first approach using entity framework in ASP.NET MVC5 platform.
Microsoft MVC paradigm claims to ease out a lot of basic web application processes such as local login work flow, user registration work flow, sign in work flow, using external logins such as facebook, twitter, linkedin etc. We all can already test that with the built-in templates for MVC type web application. But, when we talk about converting existing classic ASP.NET webform application to MVC entity framework paradigm, the first thing that comes to mind is that how will we going to integrate our existing database with new MVC paradigm? More importantly, how the basic login flow will be done even if database is successfully integrated? In such situations, code first approach is never favored rather database first approach is favorable, why? Because large enterprise applications have huge amount of investment towards data science that is generally done on database level rather than code level.