I have Linq Expression as below, which executes on DocumentDB SQL API on CosmosDB database.
predicate = predicate.And(x => x.SystemID== "123");
When I execute it to the context it by default generate SQL statement like below.
select * from [Table] where SystemID == "123"
But Expected query is below
select * from [Table] where id == "123"
But My Database table has a column named id
and the Model property has name SystemID
.
How can I put serialization logic to resolve that property name?
Note: I don't want to use AutoMapper.