This will provide you the simple and fastest way to get started with the Code First Approach using Entity Framework 5. For the purpose of this demo, I am going to use WPF application and MVVM (light toolkit). But this can be done with other types of projects too. Conceptually Code First approach is to create Models / POCO classes according to your need and generate a database out of those entities. This seems to be very handy where you don’t require to know anything about SQL and create models (Code first) which is what a programmer do his whole life. Three things you work on: 1. Design your tables in form of entities / POCO classes. Create a new project in Visual C# > Windows > MVVMLight (WPF45) or WPF Application > CodeFirstExample Under the “Model” folder create the entity / POCO class you wish to create table for, mine would be Employee class. » Read more

 Jsinh