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

My Entity Model not updated with database

1 Answer 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
S
Top achievements
Rank 1
S asked on 09 Sep 2015, 01:24 AM

I have a very strange problem. 

For example, 

I have a table, ProspectClient. There is a field name PreferredMethod_id and  a constraints link to PreferredMethod. This was fine actually. 

The problem came in is when I changed field, PreferredMethod_id, to ContactMeBy_id, and remove the previous constraints and add another one to link to ContactMeBy table.

When I update the Entity Model. The field name changes was made but not the constraints part. No matter how I change the constraint name, remove and update, Add and update. it just doesn't show up as part of the Navigation.

I have no idea what to do now. 

Thanks

1 Answer, 1 is accepted

Sort by
0
Kristian Nikolov
Telerik team
answered on 11 Sep 2015, 01:59 PM
Hello,

Thank you for contacting us.

Generally Telerik Data Access can update the model with changes made to the constraints in the database. We suggest you check the Constraints node in the Model Schema Explorer to see if the changes in the database constraints have been reflected there.

In case you do not find the expected changes there could you please provide us with the following details:
  1. From the description it appears that the constraint you removed, and the new one you added were Foreign Key constraints. Can you confirm this?
  2. What is the database engine you are using ?

This information should allow us to gain better understanding of your scenario.


We are looking forward to your feedback.

Regards,
Kristian Nikolov
Telerik
 
Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Tags
General Discussions
Asked by
S
Top achievements
Rank 1
Answers by
Kristian Nikolov
Telerik team
Share this question
or