This is a migrated thread and some comments may be shown as answers.

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

3 Answers 72 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gabor
Top achievements
Rank 1
Gabor asked on 26 Feb 2010, 10:16 PM
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

3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 01 Mar 2010, 05:13 PM
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.
0
Gabor
Top achievements
Rank 1
answered on 02 Mar 2010, 06:43 AM

Thanks, it works now!

0
Ady
Telerik team
answered on 04 Mar 2010, 05:55 PM
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.
Tags
Databases and Data Types
Asked by
Gabor
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Gabor
Top achievements
Rank 1
Ady
Telerik team
Share this question
or