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

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