Taken from the Entity Model Example:
public class Product
{
[JsonPropertyName("ID")]
public int Id { get; set; }
....
}
When using linq when filtering eg:
var query = client.For<Product>("Products")
.Filter(p => p.Id == 7)
.OrderBy("Name")
.Top(10);
The MemberPath resolves the member name to "Id"
It would be great to have it using the JsonPropertyNameAttribute instead, so the MemberPath resolves the member name "ID"
Taken from the Entity Model Example:
When using linq when filtering eg:
The MemberPath resolves the member name to "Id"
It would be great to have it using the JsonPropertyNameAttribute instead, so the MemberPath resolves the member name "ID"