我已經在我的代碼FluentValidation:驗證類型名稱必須是唯一
RuleFor(x => x.Auction_Round1Ring1Start).GreaterThan(DateTime.Now);
RuleFor(x => x.Auction_Round1Ring1End).GreaterThan(x => x.Auction_Round1Ring1Start);
RuleFor(x => x.Auction_Round1Ring2Start).GreaterThan(x => x.Auction_Round1Ring1End);
RuleFor(x => x.Auction_Round1Ring2End).GreaterThan(x => x.Auction_Round1Ring2Start);
RuleFor(x => x.Auction_Round1Ring3Start).GreaterThan(x => x.Auction_Round1Ring2End);
RuleFor(x => x.Auction_Round1Ring3End).GreaterThan(x => x.Auction_Round1Ring3Start);
RuleFor(x => x.Auction_Round2Start).GreaterThan(x => x.Auction_Round1Ring3End);
指定的以下規則和我得到這個錯誤
Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: required
我得到這個錯誤在這條線在視圖
@Html.EditorForModel()
你能證明你的模型類? –
是的 - 現在發佈 –