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>(); }
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>(); }
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); }
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); }
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(); }
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(); }
public void ForgetTestObjects() { aSide1 = aSide2 = null; bSide1 = bSide2 = null; ctx = null; }