Entity Framework 添加时报错 试试:model.EntityKey=null; 转载于:https://www.cnblogs.com/wangjiayuan/p/3633629.html