Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4019440
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:06:17+00:00 2026-05-20T10:06:17+00:00

Using RIA Domain services with entity framework 4, I am having trouble to get

  • 0

Using RIA Domain services with entity framework 4, I am having trouble to get the entity with filtered related items.

For Example,
Given: Order table and Product table (1 order has many products)

I have service returns Order with Products loaded, e.g.

    public IQueryable<Order> GetOrderById(int orderId)
    {
        return this.ObjectContext.Order
                                 .Include("Products")
                                 .Where(n=>n.OrderId == orderId);
    }

Question,

Is there a way to filter the Products record in the linq query in this case?
Say, return the order of the specified Id and include the Products which prices are higher than 100.0; return Empty/Null Products if there isn’t any. The point here is to return the Order even though there isn’t any products meet the criteria.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:06:18+00:00Added an answer on May 20, 2026 at 10:06 am

    Have you tried something like this:

    var query = from o in ObjectContext.Order.Include("Products")
                join p in ObjectContext.Product on o.ProductId equals p.ProductId
                where o.OrderId == orderId and p.Price > 100
                select o;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using RIA services with Entity Framework- I have the following sql select
I have been experimenting recently with Silverlight, RIA Services, and Entity Framework using .NET
I am using WCF RIA Services in combination with the Entity Framework 4.0. To
I'm using WCF RIA Services and I have a domain service method that returns
Can I add a serializable property to an Entity or ComplexType using RIA Services?
I've got a Silverlight 4 RIA Services (SP1) app using Entity Frameworks 4 CTP5.
Here's my scenario: I am using Silverlight, RIA and POCO objects (no Entity Framework;
I've used WCF RIA services with Entity Framework to build a simple application which
Hello guys im using WCF RIA Services i have domain services where i wrote
Hi Im using silverlight ria services and trying to called a domain service method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.