I have come across this error while I'm generating SharePoint Business Object using Entity Framework.
Error
Microsoft.Data.Entity.Design.VersioningFacade.ReverseEngineerDb.SchemaDiscovery.EntityStoreSchemaGeneratorDatabaseSchemaLoader.CreateFilteredCommand(String sql, String orderByClause, EntityStoreSchemaFilterObjectTypes queryTypes, List`1 filters, String[] filterAliases)
This happed when I change the Framework for match new Visual Studio environment.
Solution.
There were lots of suggestions, however , below method worked for me.
First, we need to open the visual studio command prompt.
because, gacutil will not work in normal command prompt , unless you specified the path.
then you can execute the below gacutil command to remove the wrong EntityFramework version.
gacutil /u EntityFramework
Comments