-
I recommend to never use InProc sessions for real apps. I have used a State Server to handle sessions in a web farm. It is a pretty good solution and you avoid the appdomain recycle problem for InProc. I had a large web app where we used session variables and passed them from form to form exactly as you described. The only thing to add is that once
-
I have posted code for how to retrieve all broken rules before. See this thread: http://forums.lhotka.net/forums/p/1220/7444.aspx#7444 Joe
-
You can't save a child object directly. So doc=doc.Save should not work. You need to save the root which saves its children: activity = activity.Save() Joe
-
I put it in the abstract class so that all BOs have it. Joe
-
I do not like the additional dependency. As I recall there was a huge backlash about this type of dependency in earlier work you did. For that reason alone I would not make the change. If DataAnnotation exception was in a standard .Net .dll that is always referenced anyway then I would be for it. Joe
-
In addition to Rocky's advice you may want to check for case sensitivity. Property "commentText" should call PropertyHasChanged("commentText") and not PropertyHasChanged("Commenttext"). Joe
-
In any class derived from it you have access to all the broken rules. Even rules that are set up in the abstract class. You should have an intermediate Base class which inherits from each CSLA type so that you can do custom work without altering CSLA. Then all your business objects inherit from your intermediate classes. This way you can add code to
-
The bug is in the line: App.Save(); It should be: App = App.Save() You always have to update your local reference with the return value of the save. Joe
-
I had this exact problem with creating a PO from a PO request. I also have to create it from a previous PO, a catalog, a PO on Hold, etc. In general I solved it like this: The PO business object has a method: Public Sub CreateFromReq( ByVal reqnumber As String , ByVal vendno As String , ByVal shipcode As String ) Inside this method you use the reqnumber
-
Jav, You are correct as far as your experience went. But MS fixed it in a later version of .Net so that you could serialize the DataTable itself without having to embed it in a dataset anymore. Joe