I have just completed upgrading a business object from CSLA 1.1 to 4.1. I have converted the classes to use the new property declarations with managed backing fields, and added relevant business rules. There are 58 classes and I have encountered a strange problem in one of them. It is a grandchild and is loaded using deep data from a multiple results set using a Dto. There is no lazy loading. As soon as I stop the VS2010 debugger and try to examine the object the debugging session stops - no warning or error. I don't get this problem with any of the other children or grandchildren and there's nothing ostensibly different about this one.
I created a test to load a single standalone object of this type from a dummy Dto. Same problem. I removed the single business rule and got a stage further. The class contains about 8 properties and 3 of them have the warning "The function evaluation requires all threads to run". One property is a DateTime?, one is an int and the third is a business list base (but in this simple instantiation it contains no child objects). If I click on the evaluation button, the property values appear, and then the debug session terminates.
Also, if I expand the base class and look at the properties, the IsSavable flag has the same warning "The function evaluation requires all threads to run".
I have tried this on 3 different PCs and all of them exhibit the same behaviour.
I'm about to do the obvious things and re-create the class from scratch, step-by-step but as it's the weekend I thought I'd post this question to see if anyone else has any suggestions.
Copyright (c) Marimer LLC