Exemplo n.º 1
0
 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;
 }
Exemplo n.º 3
0
 public void InitDbContext()
 {
     context = new RosterContext();
     context.Database.Log = s => System.Diagnostics.Debug.WriteLine(s);
 }
Exemplo n.º 4
0
 public void Deinitialize()
 {
     context.Database.ExecuteSqlCommand("delete from [Roster].[Children]");
     context = null;
 }