23 lines
550 B
C#
23 lines
550 B
C#
|
|
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();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|