摘要: TestDataSourceDataEntities context = new TestDataSourceDataEntities(); T_User model = new T_User(); model.UserID = "Gxw1111"; model.UserName = "aaaaaaaa"; model.Userpwd = "123456"; context.AddToT_User(model); context.SaveChanges();//报错地方百思不得其解释,最后发现1:实体中的表必须有主键(这里指示T_Us 阅读全文
posted @ 2012-09-10 16:02 冰城小菜刀 阅读(580) 评论(0) 推荐(0) 编辑