I have a class which inherits Role class.
public class WMSRole : Role
{
//....some properties/relationships
}
As Role inherits RoleBase and last class has Name property, how could I define this unique rule on Name?
Later update:
this is the solution I've succeeded to implement, edit the Designed.Diffs(through model designer)
<Validation>
<Rules>
<RuleUniqueValue Id="WmsRole Name Should be Unique" TargetContextIDs="Save" TargetCollectionOwnerType="" TargetCollectionPropertyName="" TargetPropertyName="Name" TargetType="Davanti.WMS.Core.Model.Authorisation.WMSRole" IsNewNode="True" />
<RuleRequiredField Id="WmsRole Name is Required" TargetContextIDs="Save" TargetCollectionOwnerType="" TargetCollectionPropertyName="" TargetPropertyName="Name" TargetType="Davanti.WMS.Core.Model.Authorisation.WMSRole" IsNewNode="True" />
</Rules>
</Validation>