删掉记录审计信息

This commit is contained in:
2022-04-21 13:48:22 +08:00
parent 674f69cb69
commit b0fa708271
6 changed files with 31 additions and 30 deletions
+3 -15
View File
@@ -1,32 +1,20 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using MassTransit;
namespace IRaCIS.Core.Domain.Models
{
public abstract class Entity : IEntity<Guid>
public abstract class Entity : IEntity<Guid>
{
[Key]
[Required]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid Id { get ; set ; }
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public Guid Id { get; set; }
}
public interface IEntity<TKey>
{
/// <summary>
/// 编号
/// </summary>
abstract TKey Id { get; set; }
}
//public class Entity<TKey> : IEntity
//{
//}
}