Telerik.OpenAccess.RT.sql.SQLException: INSERT

Thread is closed for posting
2 posts, 0 answers
  1. shane
    shane avatar
    33 posts
    Member since:
    Jan 2009

    Posted 03 Mar 2010 Link to this post

    Database relation Image

    my code:

    DataServices.HRMPerson p = new DataServices.HRMPerson();  
                p.PersonId = Guid.NewGuid();  
                p.Name = "shane";  
                HRMAffairCollection ef1 = new HRMAffairCollection();  
                ef1.AffairCollectionId = Guid.NewGuid();  
                DataServices.HRMFeature d = new DataServices.HRMFeature();  
                d.FeatureId = Guid.NewGuid();  
                d.BloodType = "b";  
                ef1.HRMFeature = d;  
                p.HRMAffairCollection = ef1;  

    error info:
    Insert of '660258325-b07df7a9-756f-4b1f-9158-c608a9c90551' failed: Telerik.OpenAccess.RT.sql.SQLException: INSERT 语句与 FOREIGN KEY 约束"FK_HRM_Feature_HRM_Person"冲突。该冲突发生于数据库"HRMTest",表"dbo.HRM_Feature", column 'FeatureId'。

  2. Jan Blessenohl
    Jan Blessenohl avatar
    707 posts

    Posted 05 Mar 2010 Link to this post

    Hello shane,
    Can you enable logging and set it to 'all'. You can see the parameter values for the insert statement now. Are we setting wrong data?

    You can enable logging the the backend configuration dialog.

    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