add duty-time and poi (จาก google maps ไปก่อน)
This commit is contained in:
parent
43932f742b
commit
78f8c0813c
30 changed files with 3395 additions and 4 deletions
30
BMA.EHR.Infrastructure/Persistence/LeaveDbContext.cs
Normal file
30
BMA.EHR.Infrastructure/Persistence/LeaveDbContext.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
using BMA.EHR.Application.Common.Interfaces;
|
||||
using BMA.EHR.Domain.Models.Leave;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Persistence
|
||||
{
|
||||
public class LeaveDbContext : DbContext, IApplicationDBContext
|
||||
{
|
||||
#region " Leave "
|
||||
|
||||
public DbSet<DutyTime> DutyTimes { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
public LeaveDbContext(DbContextOptions<LeaveDbContext> 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