摘要:
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 阅读全文