using ExcelExample.Entites;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExcelExample.Context
{
    public class MyDB : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {

            string con = "Server=.;Database=ExcelDB;Trusted_Connection = Yes;Integrated Security=True;TrustServerCertificate=True";
            optionsBuilder.UseSqlServer(con, null);
        }
        public DbSet<User> users { get; set; }
    }
}
