POCO Entity Template Problem with Generated ObjectContext

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
r.m.saddler
Posts: 33
Joined: Thu 20 May 2010 08:57
Location: Wales, UK.

POCO Entity Template Problem with Generated ObjectContext

Post by r.m.saddler » Thu 30 Jun 2011 08:00

Hi,

I am using the Devart POCO Entity Template and when I run my project I am getting the following error with the generated ObjectContext file:

"public ClearingDataModelEntities() :
Line 37: base(@"metadata=res://*/ClearingDataModel.csdl|res://*/ClearingDataModel.ssdl|res://*/ClearingDataModel.msl;provider=Devart.Data.Oracle;provider connection string=""User Id=INTUIT;Password=intuit;Server=SR.ADMIN.SWAN.AC.UK;Home=oraclient10g_home1;Persist Security Info=True""", "ClearingDataModelEntities")
Line 38: {"

When I look at the ssdl, cdsl and msl files in the obj.Debug folder they are named slightly differently : DataModels.ClearingDataModel.csdl, DataModels.ClearingDataModel.msl and DataModels.ClearingDataModel.ssdl. The code generator for these files has pre-pended the name with the folder where the data model has been defined (i.e DataModels) but the code generator for the POCO Entities doesn't do the same.

Can you tell me if there is a quick config change I can make to resolve this? Alternatively, and as a last resort, please tell me how to edit the POCO template instead so that it includes the folder name in the metadata string.

Also, I notice that the app.config entry also doesn't include the folder name either but I guess I will have to hack that manually before copying to web.config? Can you give any idea as to if this is a known bug and when it will be fixed please?

Thanks,

Rob.

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

Post by AndreyR » Mon 04 Jul 2011 09:40

I have sent a sample project to the e-mail address that you provided in your forum profile.
Please either change the project or create a new one to reproduce the problem.
Update. Unfortunately, the e-mail was not delivered. Could you please provide an alternative e-mail?

r.m.saddler
Posts: 33
Joined: Thu 20 May 2010 08:57
Location: Wales, UK.

Post by r.m.saddler » Mon 04 Jul 2011 12:29

Hi,

I have updated my profile with an alternative email address. Please try again.

Thanks,

Rob.

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

Post by AndreyR » Tue 05 Jul 2011 08:27

I have sent the project to the new e-mail address.

Post Reply