public void CanAddEntity() { var passenger = new Entities .Passenger { FirstName = "Bill" , LastName = "Sal" , PhoneNumber = "123-456-7890" }; using (var context = new Entities .PassengerContext(_options)) { context .Passengers .Add(passenger); context .SaveChanges(); } }
public bool Save() { return(_context.SaveChanges() >= 0); }