How do i use include() with two relations?
CustomerSupplier has CustomerId and CustomerAddressId the relation matches the field in the table CustomerAddress.
Table:CustomerSupplier
CustomerId
AddressId
SupplierId
ServiceName
…
Table:CustomerAddress
CustomerId
AddressId
Location
…
Im looking for something link this:
`var CustomerSupplier = db.CustomerSupplier
.Include(x => x.CustomerAddress.CustomerId)
.Include(x => x.CustomerAddress.AddressId) // This doesn't work
`