Exemple #1
0
 public override void TearDown()
 {
     if (ctx != null)
     {
         ctx.Dispose();
         ctx = null;
     }
     base.TearDown();
 }
Exemple #2
0
 public override void TearDown()
 {
     PostTeardown();
     if (_ctx != null)
     {
         _ctx.Dispose();
         _ctx = null;
     }
     base.TearDown();
 }
Exemple #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();
            }
        }
Exemple #4
0
 public override void TearDown()
 {
     ctx.Dispose();
     base.TearDown();
 }
Exemple #5
0
 public virtual void DisposeContext()
 {
     ctx.Dispose();
 }