HopFrame API module
This module contains some useful endpoints for user login / register management.
Ho to use the Web API version
-
Add the HopFrame.Api library to your project:
dotnet add package HopFrame.Api -
Create a DbContext that inherits the
HopDbContextand add a data sourcepublic class DatabaseContext : HopDbContextBase { protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { base.OnConfiguring(optionsBuilder); optionsBuilder.UseSqlite("..."); } } -
Add the DbContext and HopFrame to your services
builder.Services.AddDbContext<DatabaseContext>(); builder.Services.AddHopFrame<DatabaseContext>();