EntityContext with references