Problems using FluentNHibernate + SQLite with .NET4?

前端 未结 7 886
离开以前
离开以前 2020-12-14 22:17

I have a WPF application running with VS2010 .Net3.5 using Nhibernate with FluentNHibernate + SQLite, and all works fine.

Now I want to change to use .Net4, but thi

7条回答
  •  误落风尘
    2020-12-14 23:00

    Check the version of your System.Data reference. It sounds to me like System.Data.SqlLite can't find the version of IDbCommand and IDbConnection that it was built with which I suspect is version 2.0.0.0. I suspect that now you've upgraded to .Net 4 you are referencing System.Data version 4.0.0.0.

    If this is the case you should be able to add a binding redirect to resolve the problem:

    
        
            
            
        
    
    

提交回复
热议问题