문제

Our intranet site stopped working over night. A short look into the errorlog showed me a

EntityCommandExecutionException - An error occurred while executing the command

with the inner exception

Devart.Data.Oracle.OracleException - {"ORA-00904: \"MONTH\": invalid identifier"}

The exception occurs during a selection with LINQ. The where statement simply compares DateTime's Month and Year against some integer.

The oracle table itself simply has 4 columns (number:id PRIMARY KEY, varchar2:text, number:sum, date: creationdate).

I can reproduce the problem local with a new devart model and with a ADO.NET entity model as well against the same database.

The environment:

  • Devart dotConnect for oracle 6.10.96.0
도움이 되었습니까?

해결책

Please check your .NET Framework version.

.NET v4.5 is supported by dotConnect for Oracle starting from the 7.2.77 version: http://www.devart.com/dotconnect/oracle/revision_history.html .

다른 팁

I faced similar type of problem in one of the project where database first and entity framework used. I found that the model file's attribute is different from database table field. When the field were made similar, it worked without any problem. Please check if the model and database table are similar in which "MONTH" is located. I hope it helps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top