Example #1
0
        public PropertyService()
        {
            var connString = Startup.propertyConnString;
            var options    = new DbContextOptionsBuilder <HelloHomesPropertyContext>()
                             .UseSqlServer(connString)
                             .Options;

            _context = new HelloHomesPropertyContext(options);
        }
Example #2
0
 public PropertyService(HelloHomesPropertyContext context)
 {
     _context = context;
 }