Cosmos DB Newtonsoft Deserialization Issue
问题 I am having a strange issue with CosmosDb unable to deserialise my class. The error I am getting is Could not create an instance of type TestApp.Entities.IVisitItem. Type is an interface or abstract class and cannot be instantiated I have the following code in my startup class JsonConvert.DefaultSettings = () => new JsonSerializerSettings() { TypeNameHandling = TypeNameHandling.Auto }; And when I look in the Data Explorer and look at my document, I can see that the type information is saved