The constraint [name] has an incorrect full name

4 posts, 0 answers
  1. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 18 Dec 2010 Link to this post

    Hello,

    I'm using MySql as a db. i added some tables today and dit "update from database" in my model. after that im getting warnings (in the ide vs2010): 

    The constraint fk_users_applicationid has an incorrect full name.

    I'm getting a bunch of them. When i dubbel click the error, i get the Resolve Validation Errors" dialog, but no clue what to do...

    any ideas?
  2. Peter Huisman
    Peter Huisman avatar
    16 posts
    Member since:
    Dec 2004

    Posted 21 Dec 2010 Link to this post

    I'd be interested in the answer myself. Due to problems with openaccess I've had to backwards map a database that was made through openaccess earlier, might this have something to do with it?
  3. DevCraft banner
  4. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 21 Dec 2010 Link to this post

    hoi Peter,

    No, not really. No backwards mapping here. just added some tables and fk's...

    must say, now I look at my project and the warnings are gone. Did build a few times Sunday, the warnings did stay there, but now they are gone... restart VS maybe...

    hoi Peter,

    No, not really. No backwards mapping here. just added some tables and fk's...

    must say, now I look at my project and the warnings are gone. Did build a few times Sunday, the warnings did stay there, but now they are gone... restart VS maybe...



  5. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 21 Dec 2010 Link to this post

    Hello,

    We cannot be sure what has caused these warnings but here are some details how to resolve them:
     - Open the diagram and go to the Model Schema Explorer;
     - Expand the Constraints node and select the constraint that is reported in the warning message;
     - Go to the Properties grid (or press F4) and set the FullName so that it matches the Name property but surrounded with single quotes. For instance, if your constraint has name FK_Products_Categories, the fullname would be 'FK_Products_Categories'.

    This should make the warning disappear. We will improve the handling of this problem for the next build and provide an action that automatically resolves it via the Resolve Validation Errors dialog. Please excuse us for the inconvenience caused.

    Best wishes,
    Alexander
    the Telerik team
    Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Back to Top