Код: Выделить всё
The input content is invalid because the required properties - 'id; ' - are missing.
Вот вызов CosmosDB:
Код: Выделить всё
var insertionResponse = await container.CreateItemAsync(
item: article,
partitionKey: new PartitionKey(article.Id.ToString())
);
Код: Выделить всё
public partial class Article
{
[JsonPropertyName("id")]
public Guid Id { get; set; }
public Guid CreatedBy { get; set; }
public DateTime CreatedOn { get; set; }
public string Title { get; set; }
public string Body { get; set; }
}
Подробнее здесь: https://stackoverflow.com/questions/683 ... ly-present
Мобильная версия