Problem Rolling transaction back.

8 posts, 1 answers
  1. Makoto
    Makoto avatar
    16 posts
    Member since:
    Nov 2006

    Posted 13 Jan 2010 Link to this post

    So I am using code similar to what's below, and getting a weird exception when I call transaction.Rollback()

    Unable to cast object of type 'OpenAccessRuntime.Relational.RelationalGenericOID' to type '<TypeCreatedByOpenAccess>' .

    private IObjectScope scope = ObjectScopeProvider.GetNewObjectScope();
    scope.Transaction.Begin();
    var member = new Member { FirstName = "Foo", LastName = "Bar"};
    scope.Add(member);

    foreach(string phoneNumber in forminput.Phones){
      scope.Add(new Phone { Number = phoneNumber, Member = member });
    }

    foreach(int subscriptionId in forminput.SubscriptionIds){
      scope.Add(new MemberSubcription{ SubscriptionId = subscriptionId, Member = member});
    }

    if(checkValid()){
       scope.Transaction.Commit();
    }else{
       scope.Transaction.Rollback();
    }



  2. Answer
    Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 14 Jan 2010 Link to this post

    Hi Makoto,

    This is a known issue of the Telerik OpenAccess ORM which was fixed. The fix is available in the latest internal build.
    Hope that helps. If any other question arise please contact us.

    Kind regards,
    Damyan Bogoev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. julien test
    julien test avatar
    15 posts
    Member since:
    Oct 2009

    Posted 25 Feb 2010 Link to this post

    Hi,

    I have exactly the same problem using Telerik Open Access. Each time I make a Rollback. I get the same error "Unable to cast..."

    Where can I find the Internal Build Fix ? the link in your previous post doesn't seem to point to the actual fix.

    Thank you for your (really needed) help ! 


    Best regards.
  5. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 01 Mar 2010 Link to this post

    Hello julien test,

    You could find the latest internal build at the following link.
    Hope it resolves your issues.

    Sincerely yours,
    Damyan Bogoev
    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.
  6. julien test
    julien test avatar
    15 posts
    Member since:
    Oct 2009

    Posted 04 Mar 2010 Link to this post

    Hi,

    Thank you for the link, the latest build seems to correct the problem. But since it's not recommended to use the latest builds in a production environment, I won't be able to use it... Do you know when the next full Release of Open Access will be ?

    Thank you.
  7. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 04 Mar 2010 Link to this post

    Hi julien test,

    The Q1 2010 release of Telerik OpenAccess ORM is scheduled for the next week.

    Regards,
    Damyan Bogoev
    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.
  8. julien test
    julien test avatar
    15 posts
    Member since:
    Oct 2009

    Posted 09 Mar 2010 Link to this post

    Hi,

    Thank you for your answer. Will there be a TRIAL version of the Q1 2010 Release ?

    Regards,

    Julien. 
  9. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 10 Mar 2010 Link to this post

    Hi julien test,

    Yes, a trial version of Telerik OpenAccess ORM Q1 2010 is available. You should already be able to download it from your account.

    Best wishes,
    Damyan Bogoev
    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.
Back to Top
DevCraft banner