How to Use ObjectContainer with the new visual designer

Thread is closed for posting
2 posts, 1 answers
  1. Omar
    Omar avatar
    5 posts
    Member since:
    May 2009

    Posted 21 Jun 2011 Link to this post


    I have followed the steps described in this help page to update the changes in the ObjectContainer to the scope, but it throws a runtime exception "The method Begin is not supported for managed transactions."

    Please help me as im using the Visual model designer and this functionality is for the old model way
    The code i use is
    ccData = ObjectContainer.CommitChanges(

    and DB.GetInternalScope is
    public IObjectScope GetInternalScope() {
          return this.GetScope();

  2. Answer
    Jan Blessenohl
    Jan Blessenohl avatar
    707 posts

    Posted 22 Jun 2011 Link to this post

    Hello Omar,
    Please use a fresh scope for your operation.
    public IObjectScope GetNewInternalScope() {
          return this.GetScope().Database.GetObjectScope();

    Jan Blessenohl
    the Telerik team
    Q1’11 SP1 of Telerik OpenAccess is available for download; also available is the Q2'11 Roadmap for Telerik OpenAccess ORM.
Back to Top