This commit is contained in:
@@ -1,12 +1,27 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace IRaCIS.Core.Domain.BaseModel;
|
||||
|
||||
/// <summary>
|
||||
/// 事件 不影响数据库提交事务的,不会记录稽查
|
||||
///
|
||||
/// 比如 添加subject 自动添加访视,不适合作为事件,否则自动添加访视后,记录稽查,当前请求url 都不知道
|
||||
/// </summary>
|
||||
[Description("领域实体事件基类")]
|
||||
public abstract class DomainEvent
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 命令,触发一些操作,在当前事务一起提交
|
||||
/// </summary>
|
||||
[Description("领域实体命令基类")]
|
||||
public abstract class DomainCommand
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public class FailedDomainEvent
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user