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

It is driving me mad to a point...

1 Answer 47 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
walter verhoeven
Top achievements
Rank 1
walter verhoeven asked on 29 Aug 2009, 04:46 PM
Hi

I have a DAL with Facturies, I have my classes in the DAL as well.
Now when I test my code guess what, nothing gets saved in the db! 

What do I do:
1 Get IObjectScope from DAL class.
2 Call funtion Factury class that is localed in the DAL and pass the IObjectScope instance
3 Commit the changes.

What hapens...
Get the scope, no issue, the tool tip tells me that the transaction IsActive, and Level =1 but IsManaged is false, what the hell does this mean?

Now when I do a data action and DirtyObjects  gets Count=1 I call scope.Transaction.Commit and my DLL craches without raising an exeption!

I like coding chalagense but this is not funny anymore. What am I doing wrong?

Regards

Walter 

1 Answer, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 31 Aug 2009, 12:52 PM
Hello walter verhoeven,

The IsManaged property should not bother you. It will be true if you are using System.Transactions. Otherwise this property should be false.
Usually inserting incorrect data into your database might lead to a crash of the IObjectScope on commit. By incorrect we mean that you might be trying for example to insert null into a not Nullable column. However in such cases you should see an exception. Can you please open a support ticket and send us small application that represents this odd behavior as we would really like to dig further into this and assist you with anything we can.

Kind regards,
Petar
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.
Tags
Getting Started
Asked by
walter verhoeven
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Share this question
or