Closed Maoie86 closed 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
wrong post. sorry
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