mongodb-generic-repository icon indicating copy to clipboard operation
mongodb-generic-repository copied to clipboard

Documents don't show up in Azure Cosmos DB data explorer

Open pfekrati opened this issue 2 years ago • 0 comments

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

pfekrati avatar Oct 06 '22 15:10 pfekrati