Feature/migrate to minimal api (#662)
* migrate from classic controller to minimal api * fix all PublicApi integration test * update all nuget package add forget project * fix pay now * Adapt readme use in memory database * undo AuthenticateEndpoint to use EndpointBaseAsync * Update README.md Co-authored-by: Steve Smith <steve@kentsmiths.com> Co-authored-by: Steve Smith <steve@kentsmiths.com>
This commit is contained in:
15
README.md
15
README.md
@@ -55,18 +55,13 @@ You can also run the samples in Docker (see below).
|
||||
|
||||
### Configuring the sample to use SQL Server
|
||||
|
||||
1. Update `Startup.cs`'s `ConfigureDevelopmentServices` method as follows:
|
||||
1. By default, the project uses a real database. If you want an in memory database, you can add in `appsettings.json`
|
||||
|
||||
```csharp
|
||||
public void ConfigureDevelopmentServices(IServiceCollection services)
|
||||
{
|
||||
// use in-memory database
|
||||
//ConfigureTestingServices(services);
|
||||
```json
|
||||
{
|
||||
"UseOnlyInMemoryDatabase": true
|
||||
}
|
||||
|
||||
// use real database
|
||||
ConfigureProductionServices(services);
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
1. Ensure your connection strings in `appsettings.json` point to a local SQL Server instance.
|
||||
|
||||
Reference in New Issue
Block a user