C#C
C#3y ago
FR

❔ Entity Framework, How To Join Second Table To Third Table In The First Table?

Hi i want to join table city to area like picture below, but i got an error like this
System.ArgumentException: The properties expression 'ab => Convert(ab.City.AreaId, Object)' is not valid. The expression should represent a simple property access: 't => t.MyProperty'. When specifying multiple properties use an anonymous type: 't => new { t.MyProperty1, t.MyProperty2 }'. (Parameter 'propertyAccessExpression')


anyone know how to do it properly? im only know to join the first and second table and still learning ty.
image.png
Was this page helpful?