You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
755 B
33 lines
755 B
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Infrastructure.Domain
|
|
{
|
|
public abstract class BaseEntity
|
|
{
|
|
public BaseEntity()
|
|
{
|
|
this.Id = Guid.NewGuid();
|
|
}
|
|
|
|
[Display(Name = "Id")]
|
|
public Guid Id { get; set; }
|
|
|
|
[Display(Name = "序号")]
|
|
public int DisplayOrder { get; set; }
|
|
|
|
[Display(Name = "只读")]
|
|
public bool IsReadOnly { get; set; }
|
|
|
|
[Display(Name = "已删除")]
|
|
public bool IsDeleted { get; set; }
|
|
|
|
[Display(Name = "更新时间")]
|
|
public DateTimeOffset UpdatedOn { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{ GetType().FullName}[{Id}]";
|
|
}
|
|
}
|
|
} |