Add LeaveType Seeder
This commit is contained in:
parent
ef66c28f0e
commit
8037ad7e1e
11 changed files with 1111 additions and 2 deletions
|
|
@ -1,9 +1,15 @@
|
|||
using BMA.EHR.Domain.Models.Base;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Leave.Commons
|
||||
{
|
||||
public class LeaveType : EntityBase
|
||||
{
|
||||
[Required, Comment("ชื่อประเภทการลา")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("รหัสประเภทการลา")]
|
||||
public string Code { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue