Create a Context for the API.
More...
|
override void | OnModelCreating (ModelBuilder modelBuilder) |
| Initialization Method for the Database Handle. Initializes the DB with sample data in case the application is running in Dev mode.
|
|
Create a Context for the API.
◆ DatabaseHandle()
NookpostBackend.Data.DatabaseHandle.DatabaseHandle |
( |
DbContextOptions< DatabaseHandle > | Options | ) |
|
|
inline |
Set the DBPath to the ./database.db.
◆ OnModelCreating()
override void NookpostBackend.Data.DatabaseHandle.OnModelCreating |
( |
ModelBuilder | modelBuilder | ) |
|
|
inlineprotected |
Initialization Method for the Database Handle. Initializes the DB with sample data in case the application is running in Dev mode.
◆ Categories
DbSet<Category> NookpostBackend.Data.DatabaseHandle.Categories |
|
getset |
Set of categories avaiable.
◆ Posts
DbSet<Post> NookpostBackend.Data.DatabaseHandle.Posts |
|
getset |
◆ Users
DbSet<User> NookpostBackend.Data.DatabaseHandle.Users |
|
getset |
A table to save UserSecrets.
◆ UserSettings
DbSet<UserSettings> NookpostBackend.Data.DatabaseHandle.UserSettings |
|
getset |
The documentation for this class was generated from the following file: