I want to manually check a business rule and use the result. Are there any tricks to setting up the Context when calling a rule's Execute method?
Right now I don't think this is possible, because RuleContext has an internal constructor.
What is the scenario where you want to manually execute the rule?
Ya I noticed that when I dug though the code. I had an Extended Rule system where I could add a broken rule at runtime and have it show up in the error indicators in a data grid. I have since found a better way to do it though.
I have changed a number of projects over to CSLA 4 and everything is going fine so far. I did have some problems with Members causing an error in DynamicMethodHandlerFactory.CreateFieldSetter(FieldInfo field). Something about The Left side of the Expression had to be writable. This error was fired when calling BeginEdit on an object in WinForms. I stopped the errors by adding [NotUndoable] to the members in my base class. I can give you more info if you need it.
I'm going to my first VSLive in Redmond in Aug. Can't wait, gonna ride my chopper up there from CA. Of course I will have to attend most of your classes.
The CreateFieldSetter issue is with private backing fields? Please do provide more info, thanks.
I look forward to meeting you in Redmond!
Copyright (c) Marimer LLC