コード例 #1
0
        public UserRepository(ParkyAPIdbContext dbContext,
                              IOptions <AppSettings> appSettings)
        {
            this._dbContext = dbContext;

            // retreive the key register for the secret attribute in appSettings.json file
            this._appSettings = appSettings.Value;
        }
コード例 #2
0
 public TrailRepository(ParkyAPIdbContext dbContext)
 {
     this._dbContext = dbContext;
 }
コード例 #3
0
 public NationalParkRepository(ParkyAPIdbContext dbContext)
 {
     this._dbContext = dbContext;
 }