You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static IPropertyRule<TEntity, TProperty> Common<TEntity, TProperty>(this IPropertyRule<TEntity, TProperty?> rule, InlineValidator<TProperty> commonValidator) where TEntity : class
=> Chain(rule, new CommonRule<TEntity, TProperty>(commonValidator.ThrowIfNull()));
/// <summary>
/// Chains a common (<see cref="CommonRule{TEntity, TProperty}"/>) validation to the existing <paramref name="rule"/>.
public static IPropertyRule<TEntity, TProperty> Common<TEntity, TProperty>(this IPropertyRule<TEntity, TProperty?> rule, InlineValidator<TProperty> commonValidator) where TEntity : class where TProperty : struct
=> Chain(rule, new CommonRule<TEntity, TProperty>(commonValidator.ThrowIfNull()));