model and Dto
This commit is contained in:
31
Hushian.Domain/Entites/Group.cs
Normal file
31
Hushian.Domain/Entites/Group.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Hushian.Domain.Abstracts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Hushian.Domain.Entites
|
||||
{
|
||||
public class Group:BaseEntity
|
||||
{
|
||||
#region Key
|
||||
public int ID { get; set; }
|
||||
public int CompanyID { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Fild
|
||||
public DateTime Cdatetime
|
||||
{ get; set; } = DateTime.Now;
|
||||
public string Name { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Navigation
|
||||
[ForeignKey("CompanyID")]
|
||||
public Company Company { get; set; }
|
||||
public ICollection<ExperGroup> EG { get; set; }
|
||||
= new List<ExperGroup>();
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user