It's a step by step tutorial to implement custom role provider and authorization in ASP.NET MVC 4.0 with EF 4.x DB First approach. Step 1: Create new ASP.NET MVC 4 Web Application > Template: Internet Application, View Engine: Razor. Add Models:Step 2: Right Click on Models folder > Add > New Item > Select "ADO.NET Entity Data Model" > Enter Name "SampleModel.edmx" > Add Select "Generate From Data