I've solved it myself.
Here's the thing:
One combination I didn’t try before was to decorate the member with the [Include]
AND complement the get method with the .Include(“PRT_EXT_NEWS_IMAGENS”).
It seems to be working now.
[MetadataTypeAttribute(typeof(PRT_NEWS.PRT_NEWSMetadata))]
public partial class PRT_NEWS
{
internal sealed class PRT_NEWSMetadata
{
private PRT_NEWSMetadata()
{
}
public bool ATIVO { get; set; }
public string CONTEUDO { get; set; }
public DateTime DATA_CRIACAO { get; set; }
public DateTime DATA_LIMITE { get; set; }
public DateTime DATA_PUBLICACAO { get; set; }
public int FK_ID_ESTADO { get; set; }
public int FK_ID_IMAGEM_MAIN { get; set; }
public Guid GUID { get; set; }
public int ID { get; set; }
[Include]
public PRT_EXT_NEWS_ESTADOS PRT_EXT_NEWS_ESTADOS { get; set; }
[Include]
public PRT_EXT_NEWS_IMAGENS PRT_EXT_NEWS_IMAGENS { get; set; }
public string SINOPSE { get; set; }
public string TITULO { get; set; }
}
}
public IQueryable<PRT_NEWS> GetPRT_NEWS()
{
return this.ObjectContext.PRT_NEWS.Include("PRT_EXT_NEWS_IMAGENS").Include("PRT_EXT_NEWS_ESTADOS");
}