Consider adding back compat support by trying to lazily initialize this property from EntityInstanceContext.EdmObject.
Now that we support $select and $expand, we optimize the query that we generate to include only properties that the user has asked for in the $select query (and entity keys which are required for OData link generation). This means that we might not have an instance of the entity any more, only a partial set of properties of it.
People who have customized their link generation would be broken with this change. They should modify their code to use EdmObject property instead of EntityInstance. Alternatively, we could try to create an instance of the entity from the partial set of the properties that were selected.
Now that we support $select and $expand, we optimize the query that we generate to include only properties that the user has asked for in the $select query (and entity keys which are required for OData link generation). This means that we might not have an instance of the entity any more, only a partial set of properties of it.
People who have customized their link generation would be broken with this change. They should modify their code to use EdmObject property instead of EntityInstance. Alternatively, we could try to create an instance of the entity from the partial set of the properties that were selected.