public void Detach_IDataObject_Failed() { using (IZetboxContext ctx = GetContext()) { ctx.Detach(new TestObjClassEfImpl(null)); } }
public void Detach_IDataObject() { using (IZetboxContext ctx = GetContext()) { TestObjClass obj = ctx.GetQuery <TestObjClass>().First(); ctx.Detach(obj); Assert.That(((TestObjClassEfImpl)obj).EntityState, Is.EqualTo(EntityState.Detached)); } }
public void Detach_Null() { ctx.Detach((IDataObject)null); }