If you implement rules as attributes then how do you set about localizing any text embedded in the attribute? For example:-
<Size(100)> _
<RuleRequiredField("RuleRequiredField for Company.Name", DefaultContexts.Save, _
"Name must not be empty")> _
Public Property Name() As String
Get
Return Me.GetPropertyValue("Name").ToString
End Get
Set(ByVal value As String)
Me.SetPropertyValue("Name", value)
End Set
End Property
The rule does not seem to appear in the Model and thus the Localization feature of the model editor (which is great) wont work.
Anyone else hit this issue yet?