It is driving me mad to a point...

2 posts, 0 answers
  1. walter verhoeven
    walter verhoeven avatar
    7 posts
    Member since:
    Jul 2009

    Posted 29 Aug 2009 Link to this post

    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 
  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 31 Aug 2009 Link to this post

    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.
  3. DevCraft banner
Back to Top