Page 1 of 1

POCO Entity Template Problem with Generated ObjectContext

Posted: Thu 30 Jun 2011 08:00
by r.m.saddler
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.

Posted: Mon 04 Jul 2011 09:40
by AndreyR
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?

Posted: Mon 04 Jul 2011 12:29
by r.m.saddler
Hi,

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

Thanks,

Rob.

Posted: Tue 05 Jul 2011 08:27
by AndreyR
I have sent the project to the new e-mail address.