Open effapp opened 2 years ago
How to solve this issue, please?
How to query data with where clause including ValueObject,please? public class Customer { public int CustomerID { get; set; } public string Name { get; set; } public Boolean IsActive { get; set; } public MoneyValueObject Balance { get; set; } }
public class MoneyValueObject { public float Amount { get; set; } public string Currency { get; set; } }
var customers=dbContext.Set
How to query data with where clause including ValueObject,please?
like this: dbContext.Set().Where(o=>o.TotalAmount.Value >50000).ToList();
but it throw exception.
TotalAmount is the ValueObject of { Value, Currency}.