In my continuing attempt o write a business base class in C# (very familiar with VB), I found several samples that say the following code should work. However I am getting errors. I am using the latest 3.8 CSLA
Problem #1
protected override void AddBusinessRules()
Problem #2
ValidationRules.AddRule(Csla.Validation.CommonRules.StringRequired, new Csla.Validation.RuleArgs(NameProperty));
For both problems, the problem word (void/Csla), the error is:
Error 1 Expected class, delegate, enum, interface, or struct
Sounds like your code is missing some curly brackets ({ or }) or they are not correctly placed.
D'oh!
Sorry, thanks.
Copyright (c) Marimer LLC