完善ddd模块及错误异常中间件

This commit is contained in:
陈淳
2023-01-12 18:30:57 +08:00
parent ea4e8856c2
commit 8ead6c59c0
50 changed files with 3334 additions and 136 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Ddd.Entities
{
public interface IEntity
{
//
// 摘要:
// Returns an array of ordered keys for this entity.
object[] GetKeys();
}
public interface IEntity<TKey> : IEntity
{
//
// 摘要:
// Unique identifier for this entity.
TKey Id { get; }
}
}