Visual Webdeveloper 2010 Express and Entity FrameworK

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
lancelotti
Posts: 16
Joined: Tue 23 Feb 2010 18:28

Visual Webdeveloper 2010 Express and Entity FrameworK

Post by lancelotti » Fri 12 Mar 2010 14:37

Can someone tell me how to do this work?
There is a tutorial?

I create the edml, csdl, ssdl, msl and other files, but where I should put it?

When I run the projet I got: "Unable to load the specified metadata resource. "
Here is the connection string
"metadata=res://*/OdiarioModel.csdl|res://*/OdiarioModel.ssdl|res://*/OdiarioModel.msl;provider=Devart.Data.Oracle;provider connection string=""User Id=xxx;Password=xxx;Server=xxx;Direct=True;Sid=xe;Persist Security Info=True""", "OdiarioEntities")

My files are in the root path of an MVC 2 project.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 12 Mar 2010 16:36

Change the connection string in the way to point on the generated files, for instance

Code: Select all

"metadata=OdiarioModel.csdl|OdiarioModel.ssdl|res:OdiarioModel.msl;provider=Devart.Data.Oracle;provider connection string=""User Id=xxx;Password=xxx;Server=xxx;Direct=True;Sid=xe;Persist Security Info=True"

lancelotti
Posts: 16
Joined: Tue 23 Feb 2010 18:28

Post by lancelotti » Fri 12 Mar 2010 17:41

Now I got "The specified metadata path is not valid. A valid path must be either an existing directory, an existing file with extension '.csdl', '.ssdl', or '.msl', or a URI that identifies an embedded resource."

lancelotti
Posts: 16
Joined: Tue 23 Feb 2010 18:28

Post by lancelotti » Fri 12 Mar 2010 18:14

It works if I put the full path... now I'll try the relative one!

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 29 Mar 2010 08:49

We have fixed the problem with metadata generation. Look forward to the next build.

Post Reply