Example #1
0
 public virtual void InitTestObjects()
 {
     ctx = GetContext();
     oneSide1 = ctx.Create<OrderedOneEnd>();
     oneSide2 = ctx.Create<OrderedOneEnd>();
     oneSide3 = ctx.Create<OrderedOneEnd>();
     nSide1 = ctx.Create<OrderedNEnd>();
     nSide2 = ctx.Create<OrderedNEnd>();
     nSide3 = ctx.Create<OrderedNEnd>();
 }
Example #2
0
 public virtual void InitTestObjects()
 {
     ctx      = GetContext();
     oneSide1 = ctx.Create <OrderedOneEnd>();
     oneSide2 = ctx.Create <OrderedOneEnd>();
     oneSide3 = ctx.Create <OrderedOneEnd>();
     nSide1   = ctx.Create <OrderedNEnd>();
     nSide2   = ctx.Create <OrderedNEnd>();
     nSide3   = ctx.Create <OrderedNEnd>();
 }
Example #3
0
 protected void SubmitAndReload()
 {
     ctx.SubmitChanges();
     ctx = GetContext();
     oneSide1 = ctx.Find<OrderedOneEnd>(oneSide1.ID);
     oneSide2 = ctx.Find<OrderedOneEnd>(oneSide2.ID);
     oneSide3 = ctx.Find<OrderedOneEnd>(oneSide3.ID);
     nSide1 = ctx.Find<OrderedNEnd>(nSide1.ID);
     nSide2 = ctx.Find<OrderedNEnd>(nSide2.ID);
     nSide3 = ctx.Find<OrderedNEnd>(nSide3.ID);
 }
Example #4
0
 protected void SubmitAndReload()
 {
     ctx.SubmitChanges();
     ctx      = GetContext();
     oneSide1 = ctx.Find <OrderedOneEnd>(oneSide1.ID);
     oneSide2 = ctx.Find <OrderedOneEnd>(oneSide2.ID);
     oneSide3 = ctx.Find <OrderedOneEnd>(oneSide3.ID);
     nSide1   = ctx.Find <OrderedNEnd>(nSide1.ID);
     nSide2   = ctx.Find <OrderedNEnd>(nSide2.ID);
     nSide3   = ctx.Find <OrderedNEnd>(nSide3.ID);
 }
Example #5
0
 public void ForgetTestObjects()
 {
     ctx = null;
     oneSide1 = oneSide2 = oneSide3 = null;
     nSide1 = nSide2 = nSide3 = null;
 }
Example #6
0
 public void ForgetTestObjects()
 {
     ctx      = null;
     oneSide1 = oneSide2 = oneSide3 = null;
     nSide1   = nSide2 = nSide3 = null;
 }