2021-03-26 20:09:52 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
2022-03-18 22:55:48 +04:00
|
|
|
|
namespace CoreDatabase.Models
|
2021-03-26 20:09:52 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Базовый набор для сущности
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataContract]
|
|
|
|
|
public class BaseEntity : IdEntity
|
|
|
|
|
{
|
|
|
|
|
[DataMember]
|
|
|
|
|
public DateTime DateCreate { get; set; }
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
|
public DateTime? DateDelete { get; set; }
|
|
|
|
|
|
|
|
|
|
[DataMember]
|
|
|
|
|
public bool IsDeleted { get; set; }
|
|
|
|
|
|
|
|
|
|
public BaseEntity() : base()
|
|
|
|
|
{
|
|
|
|
|
DateCreate = DateTime.Now;
|
|
|
|
|
DateDelete = null;
|
|
|
|
|
IsDeleted = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|