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 [...]

Continue reading about Entity Framework 4.1 – Querying objects

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 [...]

Continue reading about Entity Framework 4.1–Collection Relations

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 [...]

Continue reading about Entity Framework 4.1 managing relations

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 [...]

Continue reading about Entity Framework 4.1 first steps