I just tried to use the "Insert Business Regions" code snippet (CSLA 2.0, VB). The class into which I'm inserting Inherits from BusinessBase(of T). The following code gets inserted...
#
Region " Validation Rules " Protected Overrides Sub AddValidationRules() ' TODO: add validation rules End Sub#
End RegionThe VB background compiler complains that AddValidationRules() cannot be Overrides because it doesn't override a sub in the base class
Sure enough, CSLA.Core.BusinessBase doesn't define an AddValidationRules() but it defines an overridable sub AddBusinessRules(), and it's used in the BusinessBase constructors, etc. I'm assuming the snippet is wrong?
Hi Andy,
Thanks for your response.
I couldn't find that it was known. I searched this forum, and looked at the change notes for CSLA ver 2.01 (haven't downloaded ver 2.01 yet).
Is there someplace else I should have looked?
BBM
PS. I really think that AddValidationRules() is more descriptive, but I understand it makes for more changes when porting to Ver 2.0.
Copyright (c) Marimer LLC