如何处理 Validation failed for one or more entities. See 'EntityValidationErrors' 错误

来源:互联网 发布:ssc ultimate aero数据 编辑:程序博客网 时间:2024/05/18 00:25
 try


{
             base_db.SaveChanges();
}


            catch (DbEntityValidationException  try


{
             base_db.SaveChanges();
}


            catch (DbEntityValidationException dbEx)
            {
                int i = 1;
            })
            {
                int i = 1;

            }


https://wenku.baidu.com/view/2e078af31ed9ad51f01df2c2.html

在dbEx的提示里有

阅读全文
0 0
原创粉丝点击