alkampfer on January 25th, 2012

One of the most annoying problem with the first version of entity Framework is that you have barely no option other than go with “Database First approach”, and when you start mapping database views your life started to become difficult. The first obvious problem is that the designer, during the import phase from database, try [...]

kick it on DotNetKicks.com

Continue reading about Entity Framework error 3002 on views when model updated

alkampfer on July 19th, 2011

Part 1: First Steps Part 2: Managing Relations Part 3: Collection Relations In the first three parts of this little tutorial I showed how easy is to save objects to database with EF 4.1 code first approach, now it is time to understand how to retrieve objects from the database. Querying objects from database is [...]

kick it on DotNetKicks.com

Continue reading about Entity Framework 4.1 – Querying objects

alkampfer on July 13th, 2011

Part 1: First Steps Part 2: Managing Relations Relations between objects are not limited to an object that keep a reference to another object (as seen in part 2), but I can have an object that contains a list of other objects. This is the classic RDBMS rough equivalent of the One-To-Many relation. I decided [...]

kick it on DotNetKicks.com

Continue reading about Entity Framework 4.1–Collection Relations

alkampfer on July 12th, 2011

Part 1: First Steps In previous post I showed how you can persist an object to the database thanks to EF41 and few lines of code, now it is time to understand how to manage relations. First of all create another class called weapon and then create a property of type Weapon into the Warrior [...]

kick it on DotNetKicks.com

Continue reading about Entity Framework 4.1 managing relations

alkampfer on July 11th, 2011

I use NHibernate since its first versions and I really love it , but after Entity Framework 4.1 is out, I started to consider using EF for people that actually does know anything of ORM and still work with dataset or use handwritten SQL CRUD, but could not use open source project or prefer using [...]

kick it on DotNetKicks.com

Continue reading about Entity Framework 4.1 first steps