Comments on: Entity Framework as an OR/M https://gasparnagy.com/2008/12/entity-framework-as-an-orm/ coach, trainer and bdd addict, creator of SpecFlow; owner of Spec Solutions Wed, 13 Jan 2010 08:17:08 +0000 hourly 1 https://wordpress.org/?v=6.9.4 By: PZ https://gasparnagy.com/2008/12/entity-framework-as-an-orm/#comment-8 Wed, 13 Jan 2010 08:17:08 +0000 http://www.gasparnagy.com/?p=32#comment-8 Thank you, Gaspar! Nice observation!

]]>
By: Freedom https://gasparnagy.com/2008/12/entity-framework-as-an-orm/#comment-4 Wed, 13 May 2009 14:13:00 +0000 http://www.gasparnagy.com/?p=32#comment-4 you said: “The only thing that I don’t understand is why it is allowed to create a new entity from the designer then? “

The entity framework allows you to make new entities that don’t have a one-to-one mapping from objects to database tables. For example if you have a “Person” table which EF will generate a “Person” entity for. If you wanted to create “Employee” and “Vendor” subclasses you could subclass “Person” and reference additional data from another table too. You could easily do this in the designer.

This is just one of many things that being able to create a non-generated member can do.

]]>
By: Freedom https://gasparnagy.com/2008/12/entity-framework-as-an-orm/#comment-3 Wed, 13 May 2009 14:06:00 +0000 http://www.gasparnagy.com/?p=32#comment-3 instead of using “IsLoaded” when you know you will be working with certain entities you should just use “Include” when you perform your query in the first place. This allows you to tell the framework to include sub-entities and the sub entities of thsoe entities (depending on your include string).

]]>
By: Rudy Lacovara https://gasparnagy.com/2008/12/entity-framework-as-an-orm/#comment-2 Thu, 12 Mar 2009 20:33:00 +0000 http://www.gasparnagy.com/?p=32#comment-2 Gaspar, great observations on EF and MVC. It looks like you just got started blogging in December (I just started in January). Keep it up. You’re putting out some really good stuff.

]]>