M
M
Maxim Isaev2019-09-12 23:36:22
SQL
Maxim Isaev, 2019-09-12 23:36:22

How to fix a relationship in a table?

Good day, I get an exception when I pass an object to the view:

Mistake
- $exception {"An error occurred while executing the command definition. See the inner exception for details."} System.Data.Entity.Core.EntityCommandExecutionException

Further in the same error I see
more
+ InnerException {"Invalid column name 'Lifecycle_Id'.\r\nInvalid column name 'LifecucleId'."} System.Exception {System.Data.SqlClient.SqlException}

I scroll further and see the following 5d7aab3fc1a3e119265473.png
Checked in the database in the table everything is OK, checked the foreign key is also correctly named.
How to fix Lifecycle_Id to LifecycleId and where?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2019-09-13
@MaximIs

Look at the first line of the query in your screenshot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question