Erste lauffähige Version
This commit is contained in:
1 parent
3181ecaff9
commit
3b46311b09
76 files changed
+61064
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using TodoTicketApp.Models;
|
||||
|
||||
namespace TodoTicketApp.Data;
|
||||
|
||||
public class AppDbContext : DbContext
|
||||
{
|
||||
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options) { }
|
||||
|
||||
public DbSet<Ticket> Tickets => Set<Ticket>();
|
||||
public DbSet<TicketComment> Comments => Set<TicketComment>();
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user