Files
Yi.Admin/Yi.Furion.Net6/Yi.Framework.Infrastructure/Ddd/Entities/IEntity.cs

24 lines
479 B
C#
Raw Normal View History

2023-04-13 21:12:06 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Infrastructure.Ddd.Entities
{
public interface IEntity
{
//
// 摘要:
// Returns an array of ordered keys for this entity.
}
public interface IEntity<TKey> : IEntity
{
//
// 摘要:
// Unique identifier for this entity.
TKey Id { get; set; }
}
}