You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}
}
The text was updated successfully, but these errors were encountered:
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);
}
}
The text was updated successfully, but these errors were encountered: