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:
lmartinjr 2020-10-05 02:32:08 -04:00 committed by GitHub
parent 98e2ef1720
commit bab3fa7f7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; }