Demo项目地址:https://download.csdn.net/download
添加实体模型
在Abp的Core项目[领域层]中添加实体
namespace ABPTest.MainConference
{
public class MainConference:Entity<Guid>
{
[Description("主会议名")]
public string Name {
get; set; }
[Description("创建时间")]
public string CreateDate {
get; set; }
[Description("备注")]
public string ReMark {
get; set; }
}
}
namespace ABPTest.SubConference
{
public class SubConference:Entity<Guid>
{
[Key] //这里设置主键后,继承Entity的Id不会被设置为主键
[Description("子会议ID")]
public int</