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

  • Home
  • SEARCH
  • 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 6675689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:53:26+00:00 2026-05-26T03:53:26+00:00

I have a domain service specifically built for LightSwitch where I defined three entities.

  • 0

I have a domain service specifically built for LightSwitch where I defined three entities.

  • EntityA
    • Id
    • Field1
    • EntityCollection<EntityC>
  • EntityB
    • Id
    • Field2
    • EntityCollection<EntityC>
  • EntityC
    • Id
    • EntityA_Id
    • EntityB_Id
    • EntityA
    • EntityB
    • Field3

Ok, keys and associations are setup properly and functioning correctly.

I create a search screen for EntityC and I can see my data. However, for each group of rows where EntityA and EntityB are different, lightswitch calls the domain service multiple times. Even worse, it recreates the service object multiple times !!!!

I was trying to keep a connection and use some caching for EntityA and EntityB objects but since the domain service is recreated then I can’t.

Am I missing something here?

  • 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-26T03:53:26+00:00Added an answer on May 26, 2026 at 3:53 am

    This is a WCF RIA issue not a LightSwitch specifuic issue. When you have, for example, a tree control, the nodes will be populated on demad. This article may provide some insight:
    http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/53/Tree-Control-Hierarchical-Data-with-LightSwitch.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a RIA Domain service I have added some utility functions. For instance we
I'm using WCF RIA Services and I have a domain service method that returns
I have a WCF RIA Domain Service that contains a method I'd like to
I am designing a WCF service using DDD. I have a domain service layer
I have this in my WCF domain service: public List<string> GetTop5ActiveUsersByManagementMessages() { return this.ObjectContext.Logs
I think I may have some confusion about the domain/service layer separation. In my
I have a custom domain service with a single [Invoke] operation that returns a
I have extended my domain service using a shared code file to add an
I have created a Silverlight Business app, and have created a Domain Service within
Is it possible to add a event to the domain service class? I have

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.