摘要:
CSLA业务规则验证规则所在空间:Csla.Rules基类BusinessBase 的属性 BusinessRules 中记录了业务类的验证规则验证规格的写法private class MyRule : Csla.Rules.BusinessRule{ protected override void Execute(RuleContext context) { var target = (Customer)context.Target; if (target.Sales 0){ string temp = string.Empty;foreach (var item in this.Basi. 阅读全文