Entity references now have correct context after deserialization.
Fixed MyDB create issue.