System.Data.Entity.Core.EntityCommandExecutionException

Solution

This error occurs when for example, there is a mismatch e.g. in a model or database column name. Ensure that the names of the parameters given in C# (where the call to procedure is given) match with those in the procedure(in database)

One thought on “System.Data.Entity.Core.EntityCommandExecutionException

Add yours

  1. Another reason could be that you are trying to insert data into a log table in DB and you have set its identity specifications on.
    So, DO NOT SET ANY CONSTRAINTS for any column of a log table. (e.g. no identity,primary or foreign key constraint)

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Up ↑

Create your website at WordPress.com
Get started
%d bloggers like this: