public void TestSimpleEmbeddedMode() { using(var db = new Model.TestModelEntities(testFileName)){ db.People.AddObject(new Model.Person() { Name = "Bob Burns" }); db.People.AddObject(new Model.Person() { Name = "Anne Anders" }); db.SaveChanges(); Assert.IsTrue(db.People.Count() == 2); } }
public void TestSimpleEmbeddedMode() { using (var db = new Model.TestModelEntities(testFileName)){ db.People.AddObject(new Model.Person() { Name = "Bob Burns" }); db.People.AddObject(new Model.Person() { Name = "Anne Anders" }); db.SaveChanges(); Assert.IsTrue(db.People.Count() == 2); } }