From 726165e34c9323bb17ba2e006d1e7b128fbde8ba Mon Sep 17 00:00:00 2001 From: Olmo del Corral Cano Date: Sat, 29 Aug 2020 13:05:38 +0200 Subject: [PATCH] fix BigStringEmbedded --- Signum.Engine/Basics/ExceptionLogic.cs | 4 +++- Signum.Entities/Basics/Exception.cs | 14 +++++++------- Signum.Entities/Basics/OperationLog.cs | 5 +++++ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Signum.Engine/Basics/ExceptionLogic.cs b/Signum.Engine/Basics/ExceptionLogic.cs index e094b1e679..0e7fe9070b 100644 --- a/Signum.Engine/Basics/ExceptionLogic.cs +++ b/Signum.Engine/Basics/ExceptionLogic.cs @@ -74,7 +74,9 @@ static ExceptionEntity GetEntity(Exception ex) entity.ThreadId = Thread.CurrentThread.ManagedThreadId; entity.ApplicationName = Schema.Current.ApplicationName; entity.HResult = ex.HResult; - + entity.Form = new BigStringEmbedded(); + entity.QueryString = new BigStringEmbedded(); + entity.Session = new BigStringEmbedded(); entity.Environment = CurrentEnvironment; try diff --git a/Signum.Entities/Basics/Exception.cs b/Signum.Entities/Basics/Exception.cs index 2563f501f2..ee2e758023 100644 --- a/Signum.Entities/Basics/Exception.cs +++ b/Signum.Entities/Basics/Exception.cs @@ -46,7 +46,7 @@ public string ExceptionMessage public int ExceptionMessageHash { get; private set; } - BigStringEmbedded stackTrace; + BigStringEmbedded stackTrace = new BigStringEmbedded(); [NotifyChildProperty] public BigStringEmbedded StackTrace { @@ -98,16 +98,16 @@ public BigStringEmbedded StackTrace public string? UserHostName { get; set; } [NotifyChildProperty] - public BigStringEmbedded Form { get; set; } - + public BigStringEmbedded Form { get; set; } = new BigStringEmbedded(); + [NotifyChildProperty] - public BigStringEmbedded QueryString { get; set; } - + public BigStringEmbedded QueryString { get; set; } = new BigStringEmbedded(); + [NotifyChildProperty] - public BigStringEmbedded Session { get; set; } + public BigStringEmbedded Session { get; set; } = new BigStringEmbedded(); [NotifyChildProperty] - public BigStringEmbedded Data { get; set; } + public BigStringEmbedded Data { get; set; } = new BigStringEmbedded(); public int HResult { get; internal set; } diff --git a/Signum.Entities/Basics/OperationLog.cs b/Signum.Entities/Basics/OperationLog.cs index a8ac4b4b3a..d8773daf09 100644 --- a/Signum.Entities/Basics/OperationLog.cs +++ b/Signum.Entities/Basics/OperationLog.cs @@ -8,6 +8,11 @@ namespace Signum.Entities.Basics [Serializable, EntityKind(EntityKind.System, EntityData.Transactional), TicksColumn(false), InTypeScript(Undefined = false)] public class OperationLogEntity : Entity { + public OperationLogEntity() + { + RebindEvents(); + } + [ImplementedByAll] public Lite? Target { get; set; }