EF4 + DataAnnotations: Insert Error

2 posts, 0 answers
  1. Cody
    Cody avatar
    9 posts
    Member since:
    Mar 2011

    Posted 08 Apr 2011 Link to this post

    [I noticed that my company has support tickets so I will resubmit as a support ticket]

    I took the sample from the below post download named 262302_RadDataFormRadGridViewRIAExample and took out the code from the EditEnding event handler. 

    I am using internal build version 2011.1.405.1040.

    http://www.telerik.com/community/forums/silverlight/data-form/editing-child-entities-on-many-to-many-relationship.aspx#0

    I added required data annotation attributes to the .metadata.cs file for the DomainService, ran and now when I click the 'Insert' button on the dataform, enter data that will not pass validation, click 'OK', I get a "System.Exception: Submit error is not handled!".  How do I track down what object to add a handler to??? 

    My gut says something about the validation and the Entity Insert could be the problem, but I don't know how to track down further.

    [Required()]
    public string FirstName { get; set; }
     
    public Nullable<DateTime> HireDate { get; set; }
     
    public string HomePhone { get; set; }
     
    [Required()]
    public string LastName { get; set; }

    (I am really liking the telerik support and enjoying the DataForm)

    Thanks,

    Cody
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 11 Apr 2011 Link to this post

    Hello Cody,

    To avoid duplication , I am going to post further answers in your support ticket. Can you please meanwhile attach me your project to the support ticket . Once I am able to reproduce the problem here, I am sure we can think of some solution  or a workarround.

    Greetings,
    Pavel Pavlov
    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
  3. DevCraft banner
Back to Top