the sample does not configure AppSettings any more (#1628)
parent
4e5c3685ab
commit
7247df37e0
|
@ -52,7 +52,7 @@ Just as with ``Configure``, it is recommended that features that require substan
|
|||
|
||||
Adding services to the services container makes them available within your application via :doc:`dependency injection <dependency-injection>`. Just as the ``Startup`` class is able to specify dependencies its methods require as parameters, rather than hard-coding to a specific implementation, so too can your middleware, MVC controllers and other classes in your application.
|
||||
|
||||
The ``ConfigureServices`` method is also where you should add configuration option classes, like ``AppSettings`` in the example above, that you would like to have available in your application. See the :doc:`configuration` topic to learn more about configuring options.
|
||||
The ``ConfigureServices`` method is also where you should add configuration option classes that you would like to have available in your application. See the :doc:`configuration` topic to learn more about configuring options.
|
||||
|
||||
Services Available in Startup
|
||||
-----------------------------
|
||||
|
|
|
@ -3,7 +3,7 @@ Adding Validation
|
|||
|
||||
By `Rick Anderson`_
|
||||
|
||||
In this this section you'll add validation logic to the ``Movie`` model, and you'll ensure that the validation rules are enforced any time a user attempts to create or edit a movie.
|
||||
In this section you'll add validation logic to the ``Movie`` model, and you'll ensure that the validation rules are enforced any time a user attempts to create or edit a movie.
|
||||
|
||||
Keeping things DRY
|
||||
---------------------
|
||||
|
|
Loading…
Reference in New Issue