示例#1
0
 private void CreateDatabases()
 {
     TestContext testContext = new TestContext();
     testContext.Database.EnsureCreated();
 }
示例#2
0
 public void Add(int valueToAdd)
 {
     TestContext testContext = new TestContext();
     testContext.Additions.Add(new Addition { Id = Guid.NewGuid(), Value = valueToAdd });
     testContext.SaveChanges();
 }