示例#1
0
 public void Detach_IDataObject_Failed()
 {
     using (IZetboxContext ctx = GetContext())
     {
         ctx.Detach(new TestObjClassEfImpl(null));
     }
 }
示例#2
0
 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));
     }
 }
示例#3
0
 public void Detach_Null()
 {
     ctx.Detach((IDataObject)null);
 }