早上在项目中发现在做数据提交的时候,nettier验证始终报
"System.Reflection.AmbiguousMatchException: 发现不明确的匹配。
行 102: int max = args.MaxLength;
行 103:
行 104: PropertyInfo p = target.GetType().GetProperty(e.PropertyName);
行 105:
行 106: if (p != null)
"
一直以为是生成代码不完整,后来,跟踪发现只有Tag这个字段出问题,并且是T大写的时候异常,后来也懒得去检查是否Tag被NetTiers做为保留字使用了,后来直接把字改了,重新生成,通过!