标签:
要在DBCONTEXT里加 DB SET 。
"Store update, insert, or delete statement affected an unexpected number of rows" ID是自动增长位,但数据库里却不是,数据库里加上就OK。 或者是主键值不正确,没更新到。
实体类型 不是当前上下文的模型的一部分
原文地址:http://www.cnblogs.com/runliuv/p/5760265.html