예제 #1
0
 public override void TearDown()
 {
     if (ctx != null)
     {
         ctx.Dispose();
         ctx = null;
     }
     base.TearDown();
 }
예제 #2
0
 public override void TearDown()
 {
     PostTeardown();
     if (_ctx != null)
     {
         _ctx.Dispose();
         _ctx = null;
     }
     base.TearDown();
 }
예제 #3
0
        public void Dispose()
        {
            if (ctx != null)
            {
                ctx.Dispose();
                ctx = null;
            }

            using (var localCtx = GetContext())
            {
                localCtx.GetQuery <TestObjClass>().ForEach(obj => { obj.ObjectProp = null; localCtx.Delete(obj); });
                localCtx.SubmitChanges();
            }
        }
예제 #4
0
 public override void TearDown()
 {
     ctx.Dispose();
     base.TearDown();
 }
예제 #5
0
 public virtual void DisposeContext()
 {
     ctx.Dispose();
 }