示例#1
0
 public void InitTestObjects()
 {
     ctx    = GetContext();
     aSide1 = ctx.Create <N_to_M_relations_A>();
     aSide2 = ctx.Create <N_to_M_relations_A>();
     bSide1 = ctx.Create <N_to_M_relations_B>();
     bSide2 = ctx.Create <N_to_M_relations_B>();
 }
示例#2
0
 public void InitTestObjects()
 {
     ctx = GetContext();
     aSide1 = ctx.Create<N_to_M_relations_A>();
     aSide2 = ctx.Create<N_to_M_relations_A>();
     bSide1 = ctx.Create<N_to_M_relations_B>();
     bSide2 = ctx.Create<N_to_M_relations_B>();
 }
示例#3
0
 protected void SubmitAndReload()
 {
     ctx.SubmitChanges();
     ctx    = GetContext();
     aSide1 = ctx.Find <N_to_M_relations_A>(aSide1.ID);
     aSide2 = ctx.Find <N_to_M_relations_A>(aSide2.ID);
     bSide1 = ctx.Find <N_to_M_relations_B>(bSide1.ID);
     bSide2 = ctx.Find <N_to_M_relations_B>(bSide2.ID);
 }
示例#4
0
 protected virtual void SubmitAndReload()
 {
     ctx.SubmitChanges();
     ctx = GetContext();
     aSide1 = ctx.Find<N_to_M_relations_A>(aSide1.ID);
     aSide2 = ctx.Find<N_to_M_relations_A>(aSide2.ID);
     bSide1 = ctx.Find<N_to_M_relations_B>(bSide1.ID);
     bSide2 = ctx.Find<N_to_M_relations_B>(bSide2.ID);
 }
示例#5
0
        public override void SetUp()
        {
            base.SetUp();

            ctx = GetContext();

            a1 = ctx.Create <N_to_M_relations_A>();
            b1 = ctx.Create <N_to_M_relations_B>();
            b2 = ctx.Create <N_to_M_relations_B>();

            a1.BSide.Add(b1);
            a1.BSide.Add(b2);

            ctx.SubmitChanges();
        }
示例#6
0
        public override void SetUp()
        {
            base.SetUp();

            ctx = GetContext();

            a1 = ctx.Create<N_to_M_relations_A>();
            b1 = ctx.Create<N_to_M_relations_B>();
            b2 = ctx.Create<N_to_M_relations_B>();

            a1.BSide.Add(b1);
            a1.BSide.Add(b2);

            ctx.SubmitChanges();
        }
示例#7
0
 public void ForgetTestObjects()
 {
     aSide1 = aSide2 = null;
     bSide1 = bSide2 = null;
     ctx = null;
 }
示例#8
0
 public void ForgetTestObjects()
 {
     aSide1 = aSide2 = null;
     bSide1 = bSide2 = null;
     ctx    = null;
 }