Validations not show up using EF Code First with complex types

前端 未结 2 1092
梦谈多话
梦谈多话 2021-01-29 05:08

This is a continuation of this question Model class and Mapping

I had my Client class now working fine and it\'s defined as

using System;

using System.         


        
2条回答
  •  礼貌的吻别
    2021-01-29 05:38

    I don't see a form anywhere on your page. A form context is required for validation to work. You need to wrap the Editor attributes in BeginForm block.

提交回复
热议问题