mongodb-generic-repository
mongodb-generic-repository copied to clipboard
Documents don't show up in Azure Cosmos DB data explorer
I can't get the docs to show up in CosmosDB. I'm getting this error: "Error querying documents: The GuidRepresentation for the reader is CSharpLegacy, which requires the binary sub type to be UuidLegacy, not UuidStandard"
I tried below code, but it's not working:
public class MongoDbRepository : BaseMongoRepository, IDocumentDbRepository { public MongoDbRepository(string connectionString, string databaseName) : base(connectionString, databaseName) { MongoDbContext.SetGuidRepresentation(MongoDB.Bson.GuidRepresentation.CSharpLegacy); } }