The SqlException "Invalid column name 'TrackId'" typically means that the TSQL query being executed by EF Core 6.0.13 contains a reference to a non-existent column named "TrackId". This could be caused by a variety of reasons, such as:
A typo in the entity or property name in the DbContext or model configuration code.
A mismatch between the names of columns in the database table and the property names in the entity classes.
A failure to map the entity or property correctly in the DbContext or model configuration code.
To resolve this issue, you should carefully review your DbContext and model configuration code and ensure that all entity and property names, column names, and mappings are correct and consistent. You may also need to update your database schema to ensure that it matches the model configuration.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-04-16 11:00:00 +0000
Seen: 13 times
Last updated: Aug 07 '22
What is the method for programmatic access to a time series?
What is the procedure for using pg_restore on Windows with Docker?
Can SqlDependency be used in a programming language other than .NET, such as node js?
How can multiple queries be merged into a single stored procedure in MySQL?
How can I deal with Expression.Error related to a column in Power Query?
How can you implement pagination in Oracle for the LISTAGG() function?
What is the process for implementing a FutureBuilder on an OnTap function in Flutter?