AyCode.Core/AyCode.Entities/Interfaces/IEntity.cs

20 lines
360 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AyCode.Entities.Interfaces
{
public interface IEntity
{
}
public interface IEntity<T> : IEntity
{
[Key] T Id { get; set; }
//T SetId(T id);
}
}