Add project files.

This commit is contained in:
Suphonchai Phoonsawat 2023-06-05 20:22:51 +07:00
parent cc6b248537
commit 717b0f0a8e
31 changed files with 1296 additions and 0 deletions

View file

@ -0,0 +1,22 @@
using BMA.EHR.Application.Common.Interfaces;
using BMA.EHR.Domain.Entities.MetaData;
using Microsoft.EntityFrameworkCore;
namespace BMA.EHR.Infrastructure.Persistence
{
public class ApplicationDBContext : DbContext, IApplicationDBContext
{
public ApplicationDBContext(DbContextOptions<ApplicationDBContext> options)
: base(options)
{
}
public DbSet<PrefixEntity> Prefixes { get; set; }
public DbSet<BloodGroupEntity> BloodGroups { get; set; }
public Task<int> SaveChangesAsync()
{
return base.SaveChangesAsync();
}
}
}