finished documentation for installation, database usage and authentication

This commit is contained in:
2024-11-21 16:55:56 +01:00
parent 986c5cebde
commit eef03c152d
6 changed files with 138 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
# Ho to use the Web API version
This Installation adds all HopFrame [endpoints](../endpoints) and [services](../services) to the application.
1. Add the HopFrame.Api library to your project:
```
dotnet add package HopFrame.Api
```
2. Create a [DbContext](./Database.md) that inherits the ``HopDbContext`` and add a data source
<p>&nbsp;</p>
3. Add the HopFrame services to your application, provide the previously created `DatabaseContext` that inherits from `HopDbContextBase`
```csharp
builder.Services.AddHopFrame<DatabaseContext>();
```