public void Deinitialize()
 {
     context.Database.ExecuteSqlCommand("truncate table [Roster].ParentChild");
     context.Database.ExecuteSqlCommand("delete from  [Roster].[Parents]");
     context.Database.ExecuteSqlCommand("delete from  [Roster].[Children]");
     context = null;
 }
 public void Deinitialize()
 {
     context.Database.ExecuteSqlCommand("Delete from [Roster].[Parents]");
     context = null;
 }
 public void InitDbContext()
 {
     context = new RosterContext();
     context.Database.Log = s => System.Diagnostics.Debug.WriteLine(s);
 }
Example #4
0
 public void Deinitialize()
 {
     context.Database.ExecuteSqlCommand("delete from [Roster].[Children]");
     context = null;
 }