2
0
Files
dotnet-interview-exercise/service/AppDbContext.cs
Simon Dellenbach cf91281a51 Initial exercise setup.
Additions

* Instructions for manually starting the database.
* Each phase now has a success criteria with how to verify.
* Troubleshooting section for working with the Docker DB container.
* All phases of the exercise are described in README.md (with as little advanced hints as possible).
* DFD to illustrate phase 1
* Debugging starts the database container and applies schema migrations (no setup required).
* Launch settings for VS Code, VS 2022 and Rider (IntelliJ IDEA).
* Swagger UI is available at <http://localhost:8080/swagger/index.html> for testing.
2025-07-24 17:10:10 +02:00

10 lines
227 B
C#

using Microsoft.EntityFrameworkCore;
namespace service;
public class AppDbContext : DbContext
{
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
public DbSet<Post> Posts { get; set; }
}