Posts

Showing posts with the label Entity Framework

Code First!!!

Image
Code first- I just love this approach, well any developer would. MVC has been haunting since long ago. So thinking to my self better late than never gave it shot and found it to be pretty neat & interesting. And Microsoft as before with MVC, Entity framework, etc etc leaves you wondering how they did that!!! . Lets start coding (if we get a chance to ;) ), Select ASP.NET MVC3 Web Application in the next select Internet application and try razor view engine with html5 Now check your solution explorer you will see quite a lot of things that has come from thin air. Don't b shocked there is still to come Microsoft now needs a developer who knows to create a class For this sample project let me create following two classes Employee and Department and add to Models folder      public   class   Employee     {          public   int  Id {  get ;  set ; }          public   string  Name {  get ;  set ; }          public   string