Skip to content

Receiving System.Data.Entity.Core.EntityCommandCompilationException when views are out of date. #13

@ddivita

Description

@ddivita

First, we are storing our view cache in the DB.

We ran into an issue where the View cache was out of date and was causing the System.Data.Entity.Core.EntityCommandCompilationException to be thrown.

Inner Exception:
The query view generated for the EntitySet 'Vendors' is not valid. The query parser threw the following error : The argument type 'Edm.String' is not compatible with the property 'IsTraining' of formal type 'Edm.Boolean'.

I ended up clearing the __ViewCache table and restarted the application. When is the view cache updated? Should we be performing any maintenance on the table, regularly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions