标签:style blog color io for 代码 div new
错误代码
public bool addSubOptionItem(csModel.cs_Answer answers) { bool result = false; wpe = new csWeiPlatformEntities();//实例化entity对象 try { wpe.CreateObjectSet<cs_Answer>().AddObject(answers); wpe.SaveChanges(); result = true; } catch (Exception) { result = false; } //wpe.Detach(answers); return result; }
一个实体对象不能由多个 IEntityChangeTracker 实例引用。,布布扣,bubuko.com
一个实体对象不能由多个 IEntityChangeTracker 实例引用。
标签:style blog color io for 代码 div new
原文地址:http://www.cnblogs.com/newsouls/p/3893002.html