Nhibernate supports lazy loading for single properties and this solves perfectly the situation where a table has on or more field with a lot of data and you absolutely need to avoid loading all that data each time you load the entity. Basically with NH you can define Lazy Properties and the content of that […]

Continue reading about Entity framework and Table splitting with Code First

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

EF 4.1 is now in RC phase and as a NHibernate user I’m curious to check the fluent API to map entities to database. One of the feature that I and Andrea miss most is the possibility to map private properties with fluent interface. It seems strange to map private properties at once, but it […]

Continue reading about Mapping private properties with EF 4.1 RC and Fluent mapping