Skip to content

Conversation

glucaci
Copy link
Collaborator

@glucaci glucaci commented Dec 3, 2019

  • Replace create index obsoleted api
  • Add convention pack to serialize Enum's as string value (more readable)

new ConventionPack
{
new EnumRepresentationConvention(BsonType.String)
}, t => t.FullName?.StartsWith("WorkflowCore") ?? false);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this compatible with existing databases out there that have done it the old way?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it can serialize/deserialize in both ways. The new or replaced documents will have the new representation and the old ones will remain as they are.

@danielgerlag danielgerlag merged commit fe78b6b into danielgerlag:master Dec 19, 2019
@glucaci glucaci deleted the dev branch January 21, 2020 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants