PC Review


Reply
Thread Tools Rate Thread

How do you setup your EF EDM? (Entity Framework)

 
 
THJ
Guest
Posts: n/a
 
      15th Oct 2008
Hi.

I was wondering how you people setup your EDM?
Are you using the edmgen tool, the Visual Studio designer or are you
writing them manually?

I'm asking because I'm considering writing my EDM manually instead of
using the designers because I don't like auto generated code. How
difficult is it writing it manually? Can you compare it to writing
NHibernate mapping files?

Thanks in advance.
Tommy.
 
Reply With Quote
 
 
 
 
Patrik Löwendahl [MVP]
Guest
Posts: n/a
 
      17th Oct 2008
There is alot of code to write if you do it manually, you need several
attributes, a base class and to raise some events from the setter to get
the full functionality of the Entit Framework.

My general recommendation is that if the modelling capabilities of the
designer is sufficient use that, if you need more advanced modelling
like ComplexType, you should write your own csdl file and run edmgen on it.

Compared to hbm files from NHibernate they are a bit more complex to
write. NH encapsulates everything in one XML vocabular while EDM needs
three seperate for different concepts, one for the conceptual model
definition, one for the storage schema and one for the mapping between
the conceptual and storage models.

I hope this helps.

--
Patrik Löwendahl
http://www.lowendahl.net
[MVP] [MCT - Enterprise Application Development]

THJ skrev:
> Hi.
>
> I was wondering how you people setup your EDM?
> Are you using the edmgen tool, the Visual Studio designer or are you
> writing them manually?
>
> I'm asking because I'm considering writing my EDM manually instead of
> using the designers because I don't like auto generated code. How
> difficult is it writing it manually? Can you compare it to writing
> NHibernate mapping files?
>
> Thanks in advance.
> Tommy.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Entity Framework: returning the Entity with the Min() cost Markla Microsoft ADO .NET 0 4th Sep 2009 02:59 AM
Entity Framework - entity with multiple foreign keys to same table CGatto Microsoft ADO .NET 1 7th Aug 2009 07:51 PM
Entity Framework - Reassigning child entity's parent Norm Microsoft ASP .NET 3 6th Jul 2009 08:28 PM
How to relate a SQL based entity with an Object based entity in Entity Framework markla Microsoft ASP .NET 1 6th Oct 2008 10:42 AM
ADO.NET Entity Framework Greg Microsoft ADO .NET 0 5th Aug 2008 04:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:02 PM.