Commit 8150215a authored by Almouhannad's avatar Almouhannad

Add Clinics database context

parent f37a8f42
using Microsoft.EntityFrameworkCore;
namespace Persistence.Context;
public partial class ClinicsDbContext : DbContext
{
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
// TODO: Use options pattern
optionsBuilder.UseSqlServer("server=.\\;database=Clinics_Test;Trusted_Connection=True; Encrypt=False;MultipleActiveResultSets=true");
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.ApplyConfigurationsFromAssembly(typeof(ClinicsDbContext).Assembly);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment