Error when using new DataContext

4 posts, 0 answers
  1. Richard
    Richard avatar
    11 posts
    Member since:
    Jul 2008

    Posted 04 Apr 2011 Link to this post

    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!
  2. PetarP
    PetarP avatar
    754 posts

    Posted 05 Apr 2011 Link to this post

    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.

    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
  3. DevCraft banner
  4. Prassin
    Prassin avatar
    87 posts
    Member since:
    Jun 2012

    Posted 07 Jun 2012 Link to this post

    am using 3.5 asp 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....


  5. Damyan Bogoev
    Damyan Bogoev avatar
    581 posts

    Posted 11 Jun 2012 Link to this post

    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!
Back to Top