The forward mapping doesn't generate the relationship in the database

4 posts, 0 answers
  1. Gabor
    Gabor avatar
    8 posts
    Member since:
    Nov 2008

    Posted 26 Feb 2010 Link to this post

    When I generate the database on the base of the "How to use the Forward Mapping Wizard", on doesn't generate the one-to many relationship, if I don't set the join table checkbox.
    Do I have to set the referential integrity constrain manualy on the database?

    Thanks in advance

    Gabor
  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 01 Mar 2010 Link to this post

    Hi Gabor,

    By default Telerik OpenAccess ORM uses algorithms to decide whether a foreign key constraint makes sense or not. In your case you can use this setting in the backend configuration to manually override this logic:
    <dbNullForeignKey>true</dbNullForeignKey>
    This would create a foreign key constraint. You will have to put this setting in the <backendconfiguration> node of the App.config file.
    Hope that helps.

    Greetings,
    Petar
    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
  4. Gabor
    Gabor avatar
    8 posts
    Member since:
    Nov 2008

    Posted 02 Mar 2010 Link to this post

    Thanks, it works now!

  5. Ady
    Admin
    Ady avatar
    588 posts

    Posted 04 Mar 2010 Link to this post

    Hi Gabor,

     Good to know that you can proceed further.

    Do get back to us in case you need further assistance and we will be glad to help.

    Kind regards,
    Ady
    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