📌  相关文章
📜  cosmos db 输入内容无效,因为需要的属性 - 'id; ' - 丢失 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:36.430000             🧑  作者: Mango

代码示例1
// This appears because,
// in your cosmos db container you have a value id!

// NOTE that json is case sensitive so it's good practice to keep
// your program class properties with same names as in the container

// i.e. in your class you must have:

[JsonProperty(PropertyName = "id")]
public string id { get; set; }