File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/providers/WorkflowCore.Persistence.MongoDB/Services Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 7
7
using System . Threading . Tasks ;
8
8
using MongoDB . Bson ;
9
9
using MongoDB . Bson . Serialization . Conventions ;
10
+ using MongoDB . Bson . Serialization . Serializers ;
10
11
using MongoDB . Driver . Linq ;
11
12
using WorkflowCore . Interface ;
12
13
using WorkflowCore . Models ;
@@ -44,7 +45,8 @@ static MongoPersistenceProvider()
44
45
x . MapProperty ( y => y . WorkflowDefinitionId ) ;
45
46
x . MapProperty ( y => y . Version ) ;
46
47
x . MapProperty ( y => y . NextExecution ) ;
47
- x . MapProperty ( y => y . Status ) ;
48
+ x . MapProperty ( y => y . Status )
49
+ . SetSerializer ( new EnumSerializer < WorkflowStatus > ( BsonType . String ) ) ;
48
50
x . MapProperty ( y => y . CreateTime ) ;
49
51
x . MapProperty ( y => y . CompleteTime ) ;
50
52
x . MapProperty ( y => y . ExecutionPointers ) ;
You can’t perform that action at this time.
0 commit comments