mirror of https://github.com/abpframework/abp.git
17 changed files with 51 additions and 90 deletions
@ -1,24 +1,12 @@ |
|||||
using System; |
namespace Volo.Abp.Application.Dtos |
||||
|
|
||||
namespace Volo.Abp.Application.Dtos |
|
||||
{ |
{ |
||||
/// <summary>
|
public interface IEntityDto |
||||
/// A shortcut of <see cref="IEntityDto{TPrimaryKey}"/> for default primary key type (<see cref="Guid"/>).
|
|
||||
/// </summary>
|
|
||||
public interface IEntityDto : IEntityDto<Guid> |
|
||||
{ |
{ |
||||
|
|
||||
} |
} |
||||
|
|
||||
/// <summary>
|
public interface IEntityDto<TPrimaryKey> : IEntityDto |
||||
/// Defines common properties for entity based DTOs.
|
|
||||
/// </summary>
|
|
||||
/// <typeparam name="TPrimaryKey"></typeparam>
|
|
||||
public interface IEntityDto<TPrimaryKey> |
|
||||
{ |
{ |
||||
/// <summary>
|
|
||||
/// Id of the entity.
|
|
||||
/// </summary>
|
|
||||
TPrimaryKey Id { get; set; } |
TPrimaryKey Id { get; set; } |
||||
} |
} |
||||
} |
} |
||||
@ -1,8 +1,9 @@ |
|||||
using Volo.Abp.Application.Dtos; |
using System; |
||||
|
using Volo.Abp.Application.Dtos; |
||||
|
|
||||
namespace Volo.Abp.Identity |
namespace Volo.Abp.Identity |
||||
{ |
{ |
||||
public class IdentityRoleDto : EntityDto |
public class IdentityRoleDto : EntityDto<Guid> |
||||
{ |
{ |
||||
public string Name { get; set; } |
public string Name { get; set; } |
||||
} |
} |
||||
|
|||||
@ -1,9 +1,10 @@ |
|||||
using Volo.Abp.Application.Dtos; |
using System; |
||||
|
using Volo.Abp.Application.Dtos; |
||||
|
|
||||
namespace Volo.Abp.AutoMapper.SampleClasses |
namespace Volo.Abp.AutoMapper.SampleClasses |
||||
{ |
{ |
||||
[AutoMap(typeof(MyEntity))] |
[AutoMap(typeof(MyEntity))] |
||||
public class MyEntityDto : EntityDto |
public class MyEntityDto : EntityDto<Guid> |
||||
{ |
{ |
||||
public int Number { get; set; } |
public int Number { get; set; } |
||||
} |
} |
||||
|
|||||
@ -1,8 +1,9 @@ |
|||||
|
using System; |
||||
using Volo.Abp.Application.Dtos; |
using Volo.Abp.Application.Dtos; |
||||
|
|
||||
namespace Volo.Abp.AutoMapper.SampleClasses |
namespace Volo.Abp.AutoMapper.SampleClasses |
||||
{ |
{ |
||||
public class MyEntityDto2 : EntityDto |
public class MyEntityDto2 : EntityDto<Guid> |
||||
{ |
{ |
||||
public int Number { get; set; } |
public int Number { get; set; } |
||||
} |
} |
||||
|
|||||
@ -1,8 +1,9 @@ |
|||||
using Volo.Abp.Application.Dtos; |
using System; |
||||
|
using Volo.Abp.Application.Dtos; |
||||
|
|
||||
namespace Volo.Abp.AutoMapper.SampleClasses |
namespace Volo.Abp.AutoMapper.SampleClasses |
||||
{ |
{ |
||||
public class MyNotMappedDto : EntityDto |
public class MyNotMappedDto : EntityDto<Guid> |
||||
{ |
{ |
||||
public int Number { get; set; } |
public int Number { get; set; } |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue