views:

44

answers:

1

Hi all,

I am using this

  public IQueryable<Document> GetDocuments()
    {
        return this.ObjectContext.Documents.Include("Company").Include("PostingStatus").Include("DocumentType").Include("Period");
    }

in my domainservice but its not returning anything to the client i am using WCF RIA Services and EF4 and Silverlight.

Does this have anything to do with some changes in EF4 regarding inner and outer joins it used to work in previous version of EF but dont know whats going on wrong. Can you throw some light on this.

Thanks, Aashish Gupta

A: 

I have uploaded the file and tried everything but it doesn't seem to work when on the client i externally specify like this

  (documentDomainDataSource.DomainContext as DocumentContext).AddReference(typeof(Company), company_ctx);
        (documentDomainDataSource.DomainContext as DocumentContext).AddReference(typeof(DocumentType), documentType_ctx);
        (documentDomainDataSource.DomainContext as DocumentContext).AddReference(typeof(Period), periods_ctx);

then it works but this is not the solution for which i am using Entity Framework and ria services.

Aashish