From bab3fa7f7bf30a2502517ec04fb1bdcd30078b98 Mon Sep 17 00:00:00 2001 From: lmartinjr Date: Mon, 5 Oct 2020 02:32:08 -0400 Subject: [PATCH] Since the State property is serialized JSON the getter and setter needs to look for the key lowercased. This allows the property to be set with the name and have the Name property persisted in the datastore (i.e. EF). (#395) --- src/core/Elsa.Abstractions/Models/ActivityDefinition.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/Elsa.Abstractions/Models/ActivityDefinition.cs b/src/core/Elsa.Abstractions/Models/ActivityDefinition.cs index d2a6a803a..8af3ab58c 100644 --- a/src/core/Elsa.Abstractions/Models/ActivityDefinition.cs +++ b/src/core/Elsa.Abstractions/Models/ActivityDefinition.cs @@ -33,6 +33,7 @@ namespace Elsa.Models set => State[nameof(Name).ToLower()] = value; } + public string DisplayName { get; set; } public string Description { get; set; } public int Left { get; set; }