Open Zaigham-Gulzar opened 3 months ago
Found easier workaround:
Another Workaround (weird but works):
_ = Task.Run(() => _repository.GetAsync(id: "id", partitionKeyValue: "key", cancellationToken: cancellationToken ), cancellationToken);
IV. This way, when your project starts up, your container will be created with the right policy.
V. Then you can do CRUD operations using the entity inherited from Interface: IItem.
Describe the bug
I have the following entity:
When I let the code create the container for this EntityA, it works fine for Upsert Operation.
But I don't need to store the key: "type" in my container, and I also wanted to disable the discriminator in Entity for QuerySpecification, so I did this workaround:
I changed my entity to inherit for IItem instead of Item, like this:
Expected behavior
Actual behavior
Environment summary SDK Version: 8.1.4 OS Version: Windows
Additional context Current Workaround: