From ea952d88cac9bd5a81ba73c9753878a8c2722fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 14 Mar 2018 14:33:19 +0300 Subject: [PATCH] #232 Make UserIds Guid. --- src/Volo.Abp.Auditing/Volo/Abp/Auditing/ICreationAudited.cs | 4 +++- src/Volo.Abp.Auditing/Volo/Abp/Auditing/IDeletionAudited.cs | 4 +++- .../Volo/Abp/Auditing/IModificationAudited.cs | 4 +++- .../Volo/Abp/Application/Dtos/AuditedEntityDto.cs | 4 ++-- .../Volo/Abp/Application/Dtos/CreationAuditedEntityDto.cs | 4 ++-- .../Volo/Abp/Application/Dtos/FullAuditedEntityDto.cs | 4 ++-- .../Volo/Abp/Domain/Entities/Auditing/AuditedAggregateRoot.cs | 4 ++-- .../Volo/Abp/Domain/Entities/Auditing/AuditedEntity.cs | 4 ++-- .../Domain/Entities/Auditing/CreationAuditedAggregateRoot.cs | 4 ++-- .../Abp/Domain/Entities/Auditing/CreationAuditedEntity.cs | 4 ++-- .../Abp/Domain/Entities/Auditing/FullAuditedAggregateRoot.cs | 4 ++-- .../Volo/Abp/Domain/Entities/Auditing/FullAuditedEntity.cs | 4 ++-- 12 files changed, 27 insertions(+), 21 deletions(-) diff --git a/src/Volo.Abp.Auditing/Volo/Abp/Auditing/ICreationAudited.cs b/src/Volo.Abp.Auditing/Volo/Abp/Auditing/ICreationAudited.cs index f132d676d6..e65021171f 100644 --- a/src/Volo.Abp.Auditing/Volo/Abp/Auditing/ICreationAudited.cs +++ b/src/Volo.Abp.Auditing/Volo/Abp/Auditing/ICreationAudited.cs @@ -1,3 +1,5 @@ +using System; + namespace Volo.Abp.Auditing { /// @@ -8,7 +10,7 @@ namespace Volo.Abp.Auditing /// /// Id of the creator user. /// - long? CreatorUserId { get; set; } + Guid? CreatorUserId { get; set; } } /// diff --git a/src/Volo.Abp.Auditing/Volo/Abp/Auditing/IDeletionAudited.cs b/src/Volo.Abp.Auditing/Volo/Abp/Auditing/IDeletionAudited.cs index 25991cd3d7..5629d968c9 100644 --- a/src/Volo.Abp.Auditing/Volo/Abp/Auditing/IDeletionAudited.cs +++ b/src/Volo.Abp.Auditing/Volo/Abp/Auditing/IDeletionAudited.cs @@ -1,3 +1,5 @@ +using System; + namespace Volo.Abp.Auditing { /// @@ -8,7 +10,7 @@ namespace Volo.Abp.Auditing /// /// Id of the deleter user. /// - long? DeleterUserId { get; set; } + Guid? DeleterUserId { get; set; } } /// diff --git a/src/Volo.Abp.Auditing/Volo/Abp/Auditing/IModificationAudited.cs b/src/Volo.Abp.Auditing/Volo/Abp/Auditing/IModificationAudited.cs index b5b4f6a591..7f87759627 100644 --- a/src/Volo.Abp.Auditing/Volo/Abp/Auditing/IModificationAudited.cs +++ b/src/Volo.Abp.Auditing/Volo/Abp/Auditing/IModificationAudited.cs @@ -1,3 +1,5 @@ +using System; + namespace Volo.Abp.Auditing { /// @@ -8,7 +10,7 @@ namespace Volo.Abp.Auditing /// /// Last modifier user for this entity. /// - long? LastModifierUserId { get; set; } + Guid? LastModifierUserId { get; set; } } /// diff --git a/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/AuditedEntityDto.cs b/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/AuditedEntityDto.cs index dc39b34b79..5197694a58 100644 --- a/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/AuditedEntityDto.cs +++ b/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/AuditedEntityDto.cs @@ -13,7 +13,7 @@ namespace Volo.Abp.Application.Dtos public DateTime? LastModificationTime { get; set; } /// - public long? LastModifierUserId { get; set; } + public Guid? LastModifierUserId { get; set; } } /// @@ -27,6 +27,6 @@ namespace Volo.Abp.Application.Dtos public DateTime? LastModificationTime { get; set; } /// - public long? LastModifierUserId { get; set; } + public Guid? LastModifierUserId { get; set; } } } \ No newline at end of file diff --git a/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/CreationAuditedEntityDto.cs b/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/CreationAuditedEntityDto.cs index 92b3eaaa99..5b4e1bbb0c 100644 --- a/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/CreationAuditedEntityDto.cs +++ b/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/CreationAuditedEntityDto.cs @@ -13,7 +13,7 @@ namespace Volo.Abp.Application.Dtos public DateTime CreationTime { get; set; } /// - public long? CreatorUserId { get; set; } + public Guid? CreatorUserId { get; set; } } /// @@ -27,6 +27,6 @@ namespace Volo.Abp.Application.Dtos public DateTime CreationTime { get; set; } /// - public long? CreatorUserId { get; set; } + public Guid? CreatorUserId { get; set; } } } \ No newline at end of file diff --git a/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/FullAuditedEntityDto.cs b/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/FullAuditedEntityDto.cs index e13b6130c0..e40c2efb05 100644 --- a/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/FullAuditedEntityDto.cs +++ b/src/Volo.Abp.Ddd.Application/Volo/Abp/Application/Dtos/FullAuditedEntityDto.cs @@ -13,7 +13,7 @@ namespace Volo.Abp.Application.Dtos public bool IsDeleted { get; set; } /// - public long? DeleterUserId { get; set; } + public Guid? DeleterUserId { get; set; } /// public DateTime? DeletionTime { get; set; } @@ -30,7 +30,7 @@ namespace Volo.Abp.Application.Dtos public bool IsDeleted { get; set; } /// - public long? DeleterUserId { get; set; } + public Guid? DeleterUserId { get; set; } /// public DateTime? DeletionTime { get; set; } diff --git a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/AuditedAggregateRoot.cs b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/AuditedAggregateRoot.cs index 8b56f86054..cceb41c4a8 100644 --- a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/AuditedAggregateRoot.cs +++ b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/AuditedAggregateRoot.cs @@ -13,7 +13,7 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual DateTime? LastModificationTime { get; set; } /// - public virtual long? LastModifierUserId { get; set; } + public virtual Guid? LastModifierUserId { get; set; } } /// @@ -27,6 +27,6 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual DateTime? LastModificationTime { get; set; } /// - public virtual long? LastModifierUserId { get; set; } + public virtual Guid? LastModifierUserId { get; set; } } } \ No newline at end of file diff --git a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/AuditedEntity.cs b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/AuditedEntity.cs index 5c518a41ab..d6b2ecbe8b 100644 --- a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/AuditedEntity.cs +++ b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/AuditedEntity.cs @@ -13,7 +13,7 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual DateTime? LastModificationTime { get; set; } /// - public virtual long? LastModifierUserId { get; set; } + public virtual Guid? LastModifierUserId { get; set; } } /// @@ -27,6 +27,6 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual DateTime? LastModificationTime { get; set; } /// - public virtual long? LastModifierUserId { get; set; } + public virtual Guid? LastModifierUserId { get; set; } } } \ No newline at end of file diff --git a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/CreationAuditedAggregateRoot.cs b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/CreationAuditedAggregateRoot.cs index d22534fc9b..a023073c72 100644 --- a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/CreationAuditedAggregateRoot.cs +++ b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/CreationAuditedAggregateRoot.cs @@ -13,7 +13,7 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual DateTime CreationTime { get; set; } /// - public virtual long? CreatorUserId { get; set; } + public virtual Guid? CreatorUserId { get; set; } } /// @@ -27,6 +27,6 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual DateTime CreationTime { get; set; } /// - public virtual long? CreatorUserId { get; set; } + public virtual Guid? CreatorUserId { get; set; } } } diff --git a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/CreationAuditedEntity.cs b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/CreationAuditedEntity.cs index e470a1ee39..cb658d99b3 100644 --- a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/CreationAuditedEntity.cs +++ b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/CreationAuditedEntity.cs @@ -13,7 +13,7 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual DateTime CreationTime { get; set; } /// - public virtual long? CreatorUserId { get; set; } + public virtual Guid? CreatorUserId { get; set; } } /// @@ -27,6 +27,6 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual DateTime CreationTime { get; set; } /// - public virtual long? CreatorUserId { get; set; } + public virtual Guid? CreatorUserId { get; set; } } } \ No newline at end of file diff --git a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedAggregateRoot.cs b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedAggregateRoot.cs index 824d8a4c94..7ca08b348c 100644 --- a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedAggregateRoot.cs +++ b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedAggregateRoot.cs @@ -13,7 +13,7 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual bool IsDeleted { get; set; } /// - public virtual long? DeleterUserId { get; set; } + public virtual Guid? DeleterUserId { get; set; } /// public virtual DateTime? DeletionTime { get; set; } @@ -30,7 +30,7 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual bool IsDeleted { get; set; } /// - public virtual long? DeleterUserId { get; set; } + public virtual Guid? DeleterUserId { get; set; } /// public virtual DateTime? DeletionTime { get; set; } diff --git a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedEntity.cs b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedEntity.cs index 4318d52544..099ea8d988 100644 --- a/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedEntity.cs +++ b/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Auditing/FullAuditedEntity.cs @@ -13,7 +13,7 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual bool IsDeleted { get; set; } /// - public virtual long? DeleterUserId { get; set; } + public virtual Guid? DeleterUserId { get; set; } /// public virtual DateTime? DeletionTime { get; set; } @@ -30,7 +30,7 @@ namespace Volo.Abp.Domain.Entities.Auditing public virtual bool IsDeleted { get; set; } /// - public virtual long? DeleterUserId { get; set; } + public virtual Guid? DeleterUserId { get; set; } /// public virtual DateTime? DeletionTime { get; set; }