This is a migrated thread and some comments may be shown as answers.

Error when using new DataContext

3 Answers 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard
Top achievements
Rank 1
Richard asked on 04 Apr 2011, 02:23 PM
I recently went through the long / painful process of moving from ObjectScope to a DataContext since that seems to be the newly supported method of data access in OA... Although now I keep running into the follow error below (see the attached image). In general I keep getting an error that points to a "duplicate table" name...  It has happened now at this point on multiple entities (I remove one from the Context and yet another has the same issue)...  I directly imported the DB tables, and I did not run the conversion utility since I also had issue with that process. Please help!

3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 05 Apr 2011, 01:36 PM
Hello Richard, 


 It seems that somehow your tables got duplicated during the reverse mapping of your database. Are you sure that you are creating a new model from scratch or you are perhaps updating an existing model? What you can do is open the rlinq with an xml editor and look for duplicated table entries there. If there are any, delete them.
We are interested in finding what exactly is causing this false behavior on your side, so we will have to ask you to send us your database definition script if your project allows it. You can use the support ticket you have already opened to attach the sql script.
Thank you in advance for your cooperation on this issue.


Regards,
Petar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Prassin
Top achievements
Rank 1
answered on 07 Jun 2012, 06:41 AM
am using 3.5 asp vb.net and telerik 2012. when i try to put the filter option on my RadTreeList in the code window showed an error like "TelerikSamplesDataContext" is not defined.... which namespace i need to specify for removing this error.. Please help me.. its urgent....


Regards,

Prassin
0
Damyan Bogoev
Telerik team
answered on 11 Jun 2012, 03:02 PM
Hi Prassin,

You should use the namespace of the domain model which is generated for the TelerikSamplesDataContext

Actually the OpenAccessContext class is defined within the Telerik.OpenAccess namespace in the Telerik.OpenAccess.35.Extensions assembly. 

Hope that helps. If any other questions arise, do not hesitate to contact us back.

All the best,
Damyan Bogoev
the Telerik team
Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Prassin
Top achievements
Rank 1
Damyan Bogoev
Telerik team
Share this question
or