DOIOU/DOIOU.Server/DataContext.cs
2022-11-08 19:01:30 +01:00

15 lines
379 B
C#

using DOIOU.Server.Models;
using Microsoft.EntityFrameworkCore;
namespace DOIOU.Server
{
public class DataContext : DbContext
{
public DbSet<DOIOURecord> Records { get; set; } = null!;
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlite("Data Source=doiou.db");
}
}
}