api ระบบวินัย กรรมการ/ช่องทางร้องเรียน
This commit is contained in:
parent
9ed48d93b4
commit
2cdf724d58
69 changed files with 21578 additions and 134 deletions
34
BMA.EHR.Infrastructure/Persistence/DisciplineDbContext.cs
Normal file
34
BMA.EHR.Infrastructure/Persistence/DisciplineDbContext.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using BMA.EHR.Application.Common.Interfaces;
|
||||
using BMA.EHR.Domain.Models.Discipline;
|
||||
|
||||
// using BMA.EHR.Domain.Models.Discipline;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Persistence
|
||||
{
|
||||
public class DisciplineDbContext : DbContext, IDisciplineDbContext
|
||||
{
|
||||
#region " Discipline "
|
||||
|
||||
public DbSet<DisciplineComplaint> DisciplineComplaints { get; set; }
|
||||
public DbSet<DisciplineComplaint_Channel> DisciplineComplaint_Channels { get; set; }
|
||||
public DbSet<DisciplineDirector> DisciplineDirectors { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
public DisciplineDbContext(DbContextOptions<DisciplineDbContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public Task<int> SaveChangesAsync()
|
||||
{
|
||||
return base.SaveChangesAsync();
|
||||
}
|
||||
|
||||
public void Attatch<T>(T entity) where T : class
|
||||
{
|
||||
Attach(entity);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue