Beispiel #1
0
 /// <summary>
 /// Range.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="ruleBuilderInitial"></param>
 /// <returns></returns>
 public static IRuleBuilderInitial <T, int> Between <T>(this IRuleBuilderInitial <T, int> ruleBuilderInitial, int max, int min)
 {
     ruleBuilderInitial
     .InclusiveBetween(min, max)
     .WithMessage("{PropertyName}必须介于{Min}与{Max}之间");
     return(ruleBuilderInitial);
 }