Quickstart: Silverlight 4 and WCF RIA

5 posts, 0 answers
  1. Henk
    Henk avatar
    113 posts
    Member since:
    Apr 2006

    Posted 24 Jun 2010 Link to this post

    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?

  2. Henk
    Henk avatar
    113 posts
    Member since:
    Apr 2006

    Posted 28 Jun 2010 Link to this post

    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
  3. DevCraft banner
  4. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 28 Jun 2010 Link to this post

    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
  5. Henk
    Henk avatar
    113 posts
    Member since:
    Apr 2006

    Posted 29 Jun 2010 Link to this post

    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
  6. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 29 Jun 2010 Link to this post

    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
Back to Top
DevCraft banner