CS0433 类型“MaxLengthAttribute”同时存在于“EntityFramework, 和“System.ComponentModel.DataAnnotations, 中 1,报错如下: 2,解决过程,由默认的global改为 EF 3,引用 参考:https://www.bbsmax.com/A/lk5a91No51/