This is a migrated thread and some comments may be shown as answers.

Quickstart: Silverlight 4 and WCF RIA

4 Answers 146 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Henk
Top achievements
Rank 1
Henk asked on 24 Jun 2010, 04:42 PM
From version 2010.610.1 I tried from the topic in the installed .chm help under: Programmers Guide -> Getting Started -> Quickstart -> QuickStart - Silverlight 4 and WCF RIA. and exactly followed the QuickStart example.

With Select and Update of Customer objects there are no problems. But when I tried to insert a Customer an error is raised on SubmitChanges.

Message: System.ServiceModel.DomainServices.Client.DomainOperationException: Submit operation failed validation. Please inspect Entity.ValidationErrors for each entity in EntitiesInError for more information.
   bij System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error)
   bij System.ServiceModel.DomainServices.Client.SubmitOperation.Complete(OperationErrorStatus errorStatus)
   bij System.ServiceModel.DomainServices.Client.DomainContext.CompleteSubmitChanges(IAsyncResult asyncResult)
   bij System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClassd.<SubmitChanges>b__5(Object )    

 
When I inspect ValidationErrors the Error is related to "RentalOrders".
If I remove the link between the Customer and RentalOrder objects in the model it is possible to insert a Customer object.
Can you tell me how I can insert a Customer without removing the the link between the Customer and RentalOrder objects in the model?

4 Answers, 1 is accepted

Sort by
0
Henk
Top achievements
Rank 1
answered on 28 Jun 2010, 02:14 PM
Hi Support,

Could u please answer this problem. We think it's quite basic functionality  that should work! It still does not work wiith the latest build!

Regards,

Henk
0
Jan Blessenohl
Telerik team
answered on 28 Jun 2010, 07:08 PM
Hello Henk,
Sorry for the late reply, I am able to reproduce your problem an will fix it ASAP. The fix will be latest available in the Q2 release.

The workaround is to make the RentalOrders list  internal or expose it as function.

All the best,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Henk
Top achievements
Rank 1
answered on 29 Jun 2010, 11:29 AM
Hi Jan,

>The workaround is to make the RentalOrders list  internal or expose it as function.
Could you describe the workaround in more detail. I dont understand what you mean...

Regards,

Henk
0
Jan Blessenohl
Telerik team
answered on 29 Jun 2010, 12:49 PM
Hi Henk,
Modify the customer class so that the property is:

private IList<RentalOrder> rentalOrders = new List<RentalOrder>();
internal virtual IList<RentalOrder> RentalOrders
{
    get
    {
        return rentalOrders;
    }
}


Greetings,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Getting Started
Asked by
Henk
Top achievements
Rank 1
Answers by
Henk
Top achievements
Rank 1
Jan Blessenohl
Telerik team
Share this question
or