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 6658219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:51:59+00:00 2026-05-26T01:51:59+00:00

Framework: Silverlight 4 + Entity Framework 4 (SL business application: SL project and .WEB

  • 0

Framework: Silverlight 4 + Entity Framework 4 (SL business application: SL project and .WEB project in a solution)

I have two classes in my Data Layer (not mapped to DB, created manually – I need them for specific view)

[EnableClientAccess]
public class CityInfoFull
{
    [Key]
    public int Id { get; set; }

    public String Country{ get; set; }
    public String Region { get; set; }
    public String City { get; set; }
    public int Population { get; set; }
    public DateTime Founded { get; set; }
}

The RIA generates the appropriate proxy class in the Geography.Web.g.cs

In the same namespace, I have another class:

[EnableClientAccess]
public class Person
{
    [Key]
    public int Id { get; set; }

    public String FullName { get; set; }
    public DateTime DateOfBirth { get; set; }
}

However, RIA does not want to generate the proxy for this class. I need the proxy in Silverlight application and it is not generated.

What could be the reason for that? I don’t know where to look anymore.

I’ve tried:

  • Checked that the file is set to Compile
  • Checked that the file is in the appropriate namespace
  • Rebuilt the web project that contains the file
  • Rebuilt the SL project
  • Deleted the .g.cs file and rebuilt the projects.
  • Checked if any other proxy classes are generated. (I have found out that any new class I create won’t have the proxy, but if I change already existing classes, their proxies will be updated. But no new proxies are created. It seems that only the classes created before some point are generated and everything created since then does not get its proxy, not even if I delete the .g.cs and let RIA regenerate the .g.cs).

None of this worked. What else can I do?

  • 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-26T01:52:00+00:00Added an answer on May 26, 2026 at 1:52 am

    You need to define a query method in your domain service for each entity you want to use in the silverlight project. In your case you must define a query operation for CityInfoFull and Person.

    public class MyDomainSerivce : DomainService {
    
       public IQueryable<CityInfoFull> GetCities() {
         // your logic
       }
    
       public IQueryable<Person> GetPersons() {
         // your logic
       }
    }
    

    If you want to allow that entites of the specified types can be inserted, updated and removed in the silverlight application you need to define corresponding Insert-, Update- and Remove-Operations in your DomainService for the entities.

    Take a look at the WCF RIA Services documentation to get more details.

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

Sidebar

Related Questions

I have a SOA application. 1. data layer: Entity Framework 2. Service layer: WCF
I have silverlight application, where I use Entity Framework(PostgreSQL) and WCF(not RIA). Here is
I am using Entity Framework with C# to make a Silverlight application. I have
I have been experimenting recently with Silverlight, RIA Services, and Entity Framework using .NET
I am creating a Silverlight 4 application with Entity Framework, RIA Services and MVVM-Light
I have a Silverlight 3 app using WCF RIA Services and Entity Framework for
I have created a sample silverlight application and trying to populated DataGrid with Data
I have a project setup - it is a Silverlight Client Application hosted in
I'm currently working in a Silverlight / MS SQL project where the Entity Framework
I'm writing an application that has POCO Entity Framework data access on the server.

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.