Skip to main content

Posts

Showing posts from June, 2011

Entity Framework ( Database First Code First Model First)

When using Entity Framework there is probably three approaches you will follow First is Database First It is the simplest way you could use Entity framework is when you already have the database and you generate the model from it, using the entity frame work Generator which is  the custom Generator option file (though I would not recommend such action as this too coupled with the ORM, the best is to use a custom Generator tool such this http://visualstudiogallery.msdn.microsoft.com/23df0450-5677-4926-96cc-173d02752313   it is an awesome tool or you could simply write your own Generation tool  using T4). Not my personal favorite . Second Model First My Personal Favorite till very lately, Ok how it works? it starts with the EDMX file draw you model using the designer then afterwords you can generate the database from the model and also you can generate the POCO entities very easily not a lot  (see the link above for the generation tool) it is pretty much easy to use though it is a l

Adding Libraries One Click Using Nuget

Nuget is a Visual Studio extension , It is used for adding package libraies your solution one click it is light weight easy to use, and it has a command window if u wanna go hardcore and decide to install packages , basically you can install most of the know most used libraries using it like NUnit Entity framework Coding4fun , ....Etc i gotta say it is a must have Visual Studio Extension to know more about http://nuget.codeplex.com/ Download install and you have all the things you need !!