using System; namespace Abp.Application.Services.Dto { /// /// A shortcut of for most used primary key type (). /// [Serializable] public class EntityDto : EntityDto, IEntityDto { /// /// Creates a new object. /// public EntityDto() { } /// /// Creates a new object. /// /// Id of the entity public EntityDto(int id) : base(id) { } } /// /// Implements common properties for entity based DTOs. /// /// Type of the primary key [Serializable] public class EntityDto : IEntityDto { /// /// Id of the entity. /// public TPrimaryKey Id { get; set; } /// /// Creates a new object. /// public EntityDto() { } /// /// Creates a new object. /// /// Id of the entity public EntityDto(TPrimaryKey id) { Id = id; } } }