syntax for csla 4

syntax for csla 4

Old forum URL:

gullu posted on Monday, August 20, 2012

In my pre csla 4 code I have

        protected override void DataPortal_Create()
            _userID = -1;
            ValidationRules.CheckRules();  //cannot resolve ValidationRule  compile error here

What is the syntax when porting to csla 4.0 ? thanks

gullu replied on Monday, August 20, 2012

Found it.  BusinessRules.CheckRules();


StefanCop replied on Tuesday, August 21, 2012

BusinessRules.CheckRules(); // returns the names of affected properties

Copyright (c) Marimer LLC