mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-02 15:16:37 +08:00
24 lines
486 B
C#
24 lines
486 B
C#
|
|
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; }
|
|||
|
|
}
|
|||
|
|
}
|