Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / OpenAccess ORM > General Discussions > Error when using new DataContext

Not answered Error when using new DataContext

Feed from this thread
  • Richard avatar

    Posted on Apr 4, 2011 (permalink)

    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!
    Attached files

    Reply

  • Petar Petar admin's avatar

    Posted on Apr 5, 2011 (permalink)

    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

    Reply

  • Prassin Intermediate avatar

    Posted on Jun 7, 2012 (permalink)

    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

    Reply

  • Damyan Bogoev Damyan Bogoev admin's avatar

    Posted on Jun 11, 2012 (permalink)

    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!

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / OpenAccess ORM > General Discussions > Error when using new DataContext
Related resources for "Error when using new DataContext"

OpenAccess ORM Features  |  Documentation  |  Demos  |  Telerik TV  |  Step-by-step Tutorial   ]