Intechnity-com / OdooJsonRpcClient

Odoo Client Json Rpc
MIT License
70 stars 31 forks source link

how to select whole records (all fields)? #74

Closed Maoie86 closed 1 year ago

Maoie86 commented 1 year ago

I see sample to query a model using the ff:

var products = await repository.Query() .Where(x => x.Name, OdooOperator.EqualsTo, "test product name") .Where(x => x.WriteDate, OdooOperator.GreaterThanOrEqualTo, new DateTime(2020, 12, 2)) .Select(x => new { x.Name, x.Description, x.WriteDate }) .OrderByDescending(x => x.Id) .Take(10) .ToListAsync();

How do i select all fields/colums or the whole record?

TIA,

Mu

Maoie86 commented 1 year ago

wrong post. sorry