Files
ChronoCCG/Chrono/Server/AppDbContext.cs
T
2026-06-18 21:07:28 -04:00

18 lines
411 B
C#

using Chrono.Model;
using Microsoft.EntityFrameworkCore;
namespace Server;
public class AppDbContext : DbContext
{
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
{
}
public DbSet<CardNote> CardNotes { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<CardNote>().HasKey(n => n.CardName);
}
}