public void TestCustomImplMode() { using (var db = new Model.TestCustomModelEntities()) { 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 TestCustomImplMode() { using (var db = new Model.TestCustomModelEntities()) { 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); } }