wcf-ria-services

WCF RIA Services - returning custom class of two already defined classes

I have a Silverlight / WCF RIA Services application that uses EF 4. Currently, there is a domain service that returns two types of classes, OrderItem and Event. I'd like to create a class that contains both of these items for easier manipulation of the data at the XAML level. Here is what the class that combines the two classes looks ...

How to get Custom validation error?

Suppose I have entity Person with properties typeid and salary. I build a business rule for this two properties like: public static partial class MyRules { public static ValidationResult Rule1(Person p, ValidationContext context) { if ((p.typeid == 1) && ((p.salary == null)) { ...

what event type should be set when call a SP from domainservice?

suppose I have a SP and import it as function MySp by EF. Then I want to call this function as: Context.MySp(CallbackComplete, null); public event Action<T> CallbackComplete; //how to write this line code??? In order to capture the complete event, what's the right code for call back event definition? ...

How to reload the DataContext?

I have a Silverlight Business Aplication (RIA Services) and I have a DataGrid attached to a DataSource's DataContext. In a Silverlight child Windows I create a new Entity and submit the changes to the server. The problem is that my DataContext does not know that so the grid does not show the newly added entity. How do I refresh the Dat...

WCF RIA Services - 'Table' is not a member of 'TContext'

Hello, Some background information: I am creating a Silverlight WCF RIA Services Project. I started off by creating a Silverlight Business Application and adding a Domain Service Class and an ADO.Net Entity Data Model to hook up to my SQL database. Inside of the SQL database I have about 15 tables. I am pretty much just doing basic WC...

Data structure for a navigational sequence

I have a Silverlight LOB application that has a page that will need to be visited 4 times before moving on to the next page. I want a data structure to hold a marker to the point in that sequence. I might render a display to show where you are like this: o---●---o---o I tried an enum, but I need to associate each point with small int ...