I have a model with TPT inheritance.
- Location (abstract)
- Street (derived from location)
- GoogleStreetView (
1Street → 0..1 GoogleStreetView)
Each of the above has its own table.
Everything worked fine until I added the GoogleStreetView table (which is supported by PK / FK on Street).
When I try to do this:
var street = _locationRepository
.Find()
.OfType<Street>()
.Include(x => x.GoogleStreetView)
.SingleOrDefault(x => x.LocationId == 1);
I get an error message:
ResultType . ResultType "Transient.reference [xxxx.Repositories.SqlServer.Location]", "Transient.reference [xxxx.Repositories.SqlServer.Street]". : arguments [0]
...?
, , EF 4 ( RTF RTF, ).
" FK".
Repository/UoW, LocationRepository ObjectSet<Location>. LINQ.
, . .
- ?