You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
618 B

using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace SolverWebApp.Model;
public class SolutionContext : DbContext
{
public DbSet<Solution> Solutions { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer("Data Source=host.docker.internal; Initial Catalog=sudoku; User Id=SA; Password=i2suPers3cret.; TrustServerCertificate=True");
}
}
public class Solution
{
public int Id { get; set; }
public DateTime SolvedAt { get; set; } = DateTime.Now;
public string Data { get; set; }
}