Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EntityRuleWith{TEntity, TProperty}"/> class.
 /// </summary>
 /// <param name="parent">The parent <see cref="PropertyRuleBase{TEntity, TProperty}"/>.</param>
 /// <param name="errorText">The error message format text <see cref="LText"/> (overrides the default).</param>
 public ReferenceDataCodeRuleAs(PropertyRuleBase <TEntity, string?> parent, LText?errorText = null)
 {
     _parent    = Check.NotNull(parent, nameof(parent));
     _errorText = errorText;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EntityRuleWith{TEntity, TProperty}"/> class.
 /// </summary>
 /// <param name="parent">The parent <see cref="PropertyRuleBase{TEntity, TProperty}"/>.</param>
 public EntityRuleWith(PropertyRuleBase <TEntity, TProperty> parent) => _parent = Check.NotNull(parent, nameof(parent));