Note that there are some explanatory texts on larger screens.

plurals
  1. USmollwe
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COThat has nothing to to with it. Yes it needs to be virtual so that the proxy class can override the properties and lazy load navigation properties but I can replicate this exception without using EF. When updating an existing object with automapper the destination type must be exactly the same type as destination object, subclasses is not enough. Se my answer below!
      singulars
    2. COOk, so it wasn't so simple. I've created a separate project to test it. And there it works. However I discovered that ef doesn't create dynamic proxies for this project. Could that be the difference? How does ef decide when to use proxy and not? `Configuration.ProxyCreationEnabled` is set to true.
      singulars
    3. COMy reason for this is that I've written a custom script extension method that queues script and resolves dependencies and renders later in layout. When I tested it I discovered that the scripts occured out of order. This is due to how views is rendered i.e. innermost to outermost. So the partial view's scripts occured first. With this nesting level I could sort the queued scripts by level and avoid this. I could think of another example where it could be useful,recursive partial views.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload