摘要: 在这里记录一下之前使用Entity Framework(4.3.1版本)遇到的问题。更新没有设置主键的表在默认情况下,EF不能对一个没有主键的表进行更新、插入和删除的动作。用xml方式查看edmx文件,可以在SSDL中可以看到如下xml片断(我定义了一个没有主键的表tb_WithoutKey)。<EntitySet Name="tb_WithoutKey" EntityType="TransferModel.Store.tb_WithoutKey" store:Type="Tables" store:Schema="d 阅读全文
posted @ 2012-10-15 10:41 heqichang 阅读(12430) 评论(9) 推荐(2) 编辑