18 lines
411 B
C#
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);
|
|
}
|
|
} |