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)
This commit is contained in:
parent
98e2ef1720
commit
bab3fa7f7b
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue