瀏覽代碼

Changed name of Original Values

Kenric Nugteren 11 月之前
父節點
當前提交
1631d1315b

+ 3 - 3
prs.classes/EnclosedEntities/Dimensions/Dimensions.cs

@@ -69,15 +69,15 @@ namespace Comal.Classes
             {
                 if (e.PropertyName == "ID")
                 {
-                    DoPropertyChanged("Unit." + e.PropertyName, OriginalValues.GetValueOrDefault("Unit." + e.PropertyName), Unit.ID);
+                    DoPropertyChanged("Unit." + e.PropertyName, OriginalValueList.GetValueOrDefault("Unit." + e.PropertyName), Unit.ID);
                 }
                 else if (e.PropertyName == "Formula")
                 {
-                    DoPropertyChanged("Unit." + e.PropertyName, OriginalValues.GetValueOrDefault("Unit." + e.PropertyName), Unit.Formula);
+                    DoPropertyChanged("Unit." + e.PropertyName, OriginalValueList.GetValueOrDefault("Unit." + e.PropertyName), Unit.Formula);
                 }
                 else if (e.PropertyName == "Format")
                 {
-                    DoPropertyChanged("Unit." + e.PropertyName, OriginalValues.GetValueOrDefault("Unit." + e.PropertyName), Unit.Format);
+                    DoPropertyChanged("Unit." + e.PropertyName, OriginalValueList.GetValueOrDefault("Unit." + e.PropertyName), Unit.Format);
                 }
             };
         }

+ 1 - 1
prs.shared/Database Update Scripts/Update_7_31.cs

@@ -23,7 +23,7 @@ namespace PRS.Shared
                 foreach (var item in items)
                 {
                     item.PostedStatus = PostedStatus.NeverPosted;
-                    item.OriginalValues.TryAdd("PostedStatus", null);
+                    item.OriginalValueList.TryAdd("PostedStatus", null);
                 }
                 DbFactory.NewProvider(Logger.Main).Save(items);
                 Logger.Send(LogType.Information, "", $"{items.Count} {typeof(T).Name}s processed");

+ 1 - 1
prs.stores/KanbanStore.cs

@@ -120,7 +120,7 @@ namespace Comal.Stores
             {
                 sb.AppendLine();
                 sb.AppendLine(string.Format("- The due date for the task has been changed from {0} to {1}.",
-                    entity.OriginalValues["DueDate"],
+                    entity.OriginalValueList["DueDate"],
                     entity.DueDate));
             }
             if (entity.HasOriginalValue(x => x.Notes) && entity.Notes.Count() > 1)