darker5914
Cosmos and SQL API, how can I project and remove fields
Hi all,
I am currently using
ReadItemAsync
to read the content of an item. The are instances when I am not interested in all the fields, and I would dynamically filter out properties without have to create a new POCO.
In Mongo I can do this with a ProjectionDefinition, is there a way I can do this with the SQL API?2 replies
Mongo DBDriver, how to serialise DateTimeOffset
Hi guys,
I just learned that mongo stores datetime offsets as an array, and that I can use BsonRepresentation(BsonType.String)] to save them as string instead.
Is there a way that I can specify the a custom bson representation fluently, instead of having to decorate each DatetTimeOffset property in my classes?
2 replies
AddDistributedTokenCaches and custom IDistributedCache
Anybody with experience of AddDistributedTokenCaches ? I would like to use a custom provider instead of the options that microsoft makes available (table storage or mongo instead of sql / redis / cosmos). I am using the following library https://github.com/StefH/DistributedCache.AzureTableStorage that implements IDistributedCache, but I can't figure out what else I need to do apart from registering it.
1 replies