Browse Source

Merge branch 'master' of https://github.com/volosoft/abp

pull/395/head
Halil ibrahim Kalkan 8 years ago
parent
commit
97269c0ac7
  1. 4
      modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogConsts.cs
  2. 7
      modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/AuditLog.cs
  3. 1
      modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/AuditLogAction.cs
  4. 1
      modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/EntityChange.cs
  5. 1
      modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/EntityPropertyChange.cs
  6. 2
      modules/audit-logging/src/Volo.Abp.AuditLogging.EntityFrameworkCore/Volo/Abp/AuditLogging/EntityFrameworkCore/AbpAuditLoggingtDbContextModelBuilderExtensions.cs

4
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared/Volo/Abp/AuditLogging/AuditLogConsts.cs

@ -11,5 +11,9 @@
public const int MaxExceptionsLength = 4000; public const int MaxExceptionsLength = 4000;
public const int MaxCommentsLength = 256; public const int MaxCommentsLength = 256;
public const int MaxUrlLength = 256;
public const int MaxHttpMethodLength = 16;
} }
} }

7
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/AuditLog.cs

@ -9,6 +9,7 @@ using Volo.Abp.MultiTenancy;
namespace Volo.Abp.AuditLogging namespace Volo.Abp.AuditLogging
{ {
[DisableAuditing]
public class AuditLog : AggregateRoot<Guid>, IHasExtraProperties, IMultiTenant public class AuditLog : AggregateRoot<Guid>, IHasExtraProperties, IMultiTenant
{ {
public virtual Guid? UserId { get; protected set; } public virtual Guid? UserId { get; protected set; }
@ -29,6 +30,10 @@ namespace Volo.Abp.AuditLogging
public virtual string BrowserInfo { get; protected set; } public virtual string BrowserInfo { get; protected set; }
public virtual string HttpMethod { get; protected set; }
public virtual string Url { get; protected set; }
public virtual string Exceptions { get; protected set; } public virtual string Exceptions { get; protected set; }
public virtual string Comments { get; protected set; } public virtual string Comments { get; protected set; }
@ -54,6 +59,8 @@ namespace Volo.Abp.AuditLogging
ClientIpAddress = auditInfo.ClientIpAddress; ClientIpAddress = auditInfo.ClientIpAddress;
ClientName = auditInfo.ClientName; ClientName = auditInfo.ClientName;
BrowserInfo = auditInfo.BrowserInfo; BrowserInfo = auditInfo.BrowserInfo;
HttpMethod = auditInfo.HttpMethod;
Url = auditInfo.Url;
ImpersonatorUserId = auditInfo.ImpersonatorUserId; ImpersonatorUserId = auditInfo.ImpersonatorUserId;
ImpersonatorTenantId = auditInfo.ImpersonatorTenantId; ImpersonatorTenantId = auditInfo.ImpersonatorTenantId;
ExtraProperties = auditInfo.ExtraProperties.ToDictionary(pair => pair.Key, pair => pair.Value); ExtraProperties = auditInfo.ExtraProperties.ToDictionary(pair => pair.Key, pair => pair.Value);

1
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/AuditLogAction.cs

@ -8,6 +8,7 @@ using Volo.Abp.MultiTenancy;
namespace Volo.Abp.AuditLogging namespace Volo.Abp.AuditLogging
{ {
[DisableAuditing]
public class AuditLogAction : Entity<Guid>, IMultiTenant, IHasExtraProperties public class AuditLogAction : Entity<Guid>, IMultiTenant, IHasExtraProperties
{ {
public Guid? TenantId { get; protected set; } public Guid? TenantId { get; protected set; }

1
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/EntityChange.cs

@ -9,6 +9,7 @@ using Volo.Abp.MultiTenancy;
namespace Volo.Abp.AuditLogging namespace Volo.Abp.AuditLogging
{ {
[DisableAuditing]
public class EntityChange : Entity<Guid>, IMultiTenant, IHasExtraProperties public class EntityChange : Entity<Guid>, IMultiTenant, IHasExtraProperties
{ {
public virtual Guid AuditLogId { get; protected set; } public virtual Guid AuditLogId { get; protected set; }

1
modules/audit-logging/src/Volo.Abp.AuditLogging.Domain/Volo/Abp/AuditLogging/EntityPropertyChange.cs

@ -6,6 +6,7 @@ using Volo.Abp.MultiTenancy;
namespace Volo.Abp.AuditLogging namespace Volo.Abp.AuditLogging
{ {
[DisableAuditing]
public class EntityPropertyChange : Entity<Guid>, IMultiTenant public class EntityPropertyChange : Entity<Guid>, IMultiTenant
{ {
public Guid? TenantId { get; protected set; } public Guid? TenantId { get; protected set; }

2
modules/audit-logging/src/Volo.Abp.AuditLogging.EntityFrameworkCore/Volo/Abp/AuditLogging/EntityFrameworkCore/AbpAuditLoggingtDbContextModelBuilderExtensions.cs

@ -27,6 +27,8 @@ namespace Volo.Abp.AuditLogging.EntityFrameworkCore
b.Property(x => x.ClientIpAddress).HasMaxLength(AuditLogConsts.MaxClientIpAddressLength).HasColumnName(nameof(AuditLog.ClientIpAddress)); b.Property(x => x.ClientIpAddress).HasMaxLength(AuditLogConsts.MaxClientIpAddressLength).HasColumnName(nameof(AuditLog.ClientIpAddress));
b.Property(x => x.ClientName).HasMaxLength(AuditLogConsts.MaxClientNameLength).HasColumnName(nameof(AuditLog.ClientName)); b.Property(x => x.ClientName).HasMaxLength(AuditLogConsts.MaxClientNameLength).HasColumnName(nameof(AuditLog.ClientName));
b.Property(x => x.BrowserInfo).HasMaxLength(AuditLogConsts.MaxBrowserInfoLength).HasColumnName(nameof(AuditLog.BrowserInfo)); b.Property(x => x.BrowserInfo).HasMaxLength(AuditLogConsts.MaxBrowserInfoLength).HasColumnName(nameof(AuditLog.BrowserInfo));
b.Property(x => x.HttpMethod).HasMaxLength(AuditLogConsts.MaxHttpMethodLength).HasColumnName(nameof(AuditLog.HttpMethod));
b.Property(x => x.Url).HasMaxLength(AuditLogConsts.MaxUrlLength).HasColumnName(nameof(AuditLog.Url));
b.Property(x => x.Exceptions).HasMaxLength(AuditLogConsts.MaxExceptionsLength).HasColumnName(nameof(AuditLog.Exceptions)); b.Property(x => x.Exceptions).HasMaxLength(AuditLogConsts.MaxExceptionsLength).HasColumnName(nameof(AuditLog.Exceptions));
b.Property(x => x.Comments).HasMaxLength(AuditLogConsts.MaxCommentsLength).HasColumnName(nameof(AuditLog.Comments)); b.Property(x => x.Comments).HasMaxLength(AuditLogConsts.MaxCommentsLength).HasColumnName(nameof(AuditLog.Comments));
b.Property(x => x.ExecutionDuration).HasColumnName(nameof(AuditLog.ExecutionDuration)); b.Property(x => x.ExecutionDuration).HasColumnName(nameof(AuditLog.ExecutionDuration));

Loading…
Cancel
Save