public void SaveTest() { //var tenant = new Tenant //{ // FirstName = "Joe", // Surname = "Blog", // IsActive = true //}; using (var context = new RentalContext()) { //context.Tenant.Add(tenant); //context.Entry(tenant).State = EntityState.Added; //context.SaveChanges(); var test = context.Tenants.ToList(); var x = 1; } }
public TransactionRepository(RentalContext context) { _context = context; }