public PropertyService() { var connString = Startup.propertyConnString; var options = new DbContextOptionsBuilder <HelloHomesPropertyContext>() .UseSqlServer(connString) .Options; _context = new HelloHomesPropertyContext(options); }
public PropertyService(HelloHomesPropertyContext context) { _context = context; }