Entity framework

R

Roy

I use the tool in Visual Studio to generate my entity framework data model
within an edmx file. For some reason, I want to look up for a table name with
a entity object type name. How can I retrieve the mapping information from
the model during run time? Some code samples?
Thanks.
Roy
 
R

Roy

Actually the information is loaded into MetadataWorkspace class. My question
is how to use MetadataWorkspace.GetItems() function to retrieve the
information I need. Can anyone help? Or there is no way to retrive it from
the class?
 
D

Daniel Simmons

In the current releases of the Entity Framework (both with .net 3.5sp1 and .net 4), there's not a public API as part of the metadata system which makes it easy to get access to the mapping information. You can get access to the conceptual model and the storage model but not the mapping. To get the mapping the only option right now is to load the XML for the MSL (mapping specification language) and search it.

This is something we'd like to do in a future release, but it just hasn't made it up to the top of the priority list yet.

- Danny



Roy wrote:

Actually the information is loaded into MetadataWorkspace class.
11-Feb-10

Actually the information is loaded into MetadataWorkspace class. My questio
is how to use MetadataWorkspace.GetItems() function to retrieve th
information I need. Can anyone help? Or there is no way to retrive it fro
the class

:

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Adding WCF Service References
http://www.eggheadcafe.com/tutorial...9-dfa51a9fab8e/adding-wcf-service-refere.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top