proyecto preparado para DDD + CQRS
This commit is contained in:
14
back/Domain/IEntity.cs
Normal file
14
back/Domain/IEntity.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace back.Domain;
|
||||
|
||||
public interface IEntity
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
string Id
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user