我有以下几点:public class Country public int CountryId { get; set; }
public string CountryCode { get; set; }每次我应用我的迁移时,CountryCode都会变成一个最大长度为我尝试将MaxLength注释设置<em
我有一个方法,它有[FromBody]参数,但如果值比映射对象中的true属性限制的值长,它就会一直返回MaxLength。{ public string name;public IActionResult AddUser([FromBody] AddUserMsg msg) // Always true even if the name is longer than 10 symbols
if (Model