3

I'm getting the following error in my PostgresSQL logs whenever my context is initialized:

2014-06-03 09:51:25 PDT ERROR:  column c.CreatedOn does not exist at character 10
2014-06-03 09:51:25 PDT STATEMENT:  SELECT 

    c."CreatedOn"

    FROM "__MigrationHistory" AS c

    LIMIT 1 

Everything seems to work okay for the most part, but I'd like to better understand the error and make it go away if possible.

Is this an error with the dotConnect provider or am I expected to add this custom column to my __MigrationHistory table?

1 Answer 1

4

The "column c.CreatedOn does not exist" exception is expected for this scenario. This is the internal logic of Entity Framework.

The CreatedOn column is used only in EF 4.3 and below. However, the internal check for the table "__MigrationHistory" and, accordingly, for the "CreatedOn" column still exists and, consequently, in the later EF versions this gives an error. However, the implementation of this request does not stop the application and does not affect the result.

Sign up to request clarification or add additional context in comments.

1 Comment

You might start seeing this if you uncheck the option Tools -> Options -> Debugging -> General -> Enable Just My Code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.