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?