Created
July 14, 2020 12:12
-
-
Save zleao/7eb6bad7ee061c256b405acace01bc7c to your computer and use it in GitHub Desktop.
Metacode for hybruid support of collection creation for portable MongoDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { /*TryCreateShardedCollection*/ } | |
catch | |
{ | |
await Database.CreateCollectionAsync(collectionName); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment