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

Problem Rolling transaction back.

7 Answers 111 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Makoto
Top achievements
Rank 1
Makoto asked on 14 Jan 2010, 03:23 AM
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();
}



7 Answers, 1 is accepted

Sort by
0
Accepted
Damyan Bogoev
Telerik team
answered on 14 Jan 2010, 08:08 PM
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.
0
julien test
Top achievements
Rank 1
answered on 25 Feb 2010, 07:01 PM
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.
0
Damyan Bogoev
Telerik team
answered on 01 Mar 2010, 05:11 PM
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.
0
julien test
Top achievements
Rank 1
answered on 04 Mar 2010, 10:20 AM
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.
0
Damyan Bogoev
Telerik team
answered on 04 Mar 2010, 04:24 PM
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.
0
julien test
Top achievements
Rank 1
answered on 09 Mar 2010, 10:42 AM
Hi,

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

Regards,

Julien. 
0
Damyan Bogoev
Telerik team
answered on 10 Mar 2010, 07:09 PM
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.
Tags
Development (API, general questions)
Asked by
Makoto
Top achievements
Rank 1
Answers by
Damyan Bogoev
Telerik team
julien test
Top achievements
Rank 1
Share this question
or