mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-03 07:36:36 +08:00
完善ddd模块及错误异常中间件
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user