我不熟悉使用FluentData并使用正在使用它的现有应用程序。FluentData.IDbCommand不包含'Query'错误的定义
当我试图在Visual Studio中构建时,我首先下载了该dll并将其添加为参考。
现在我得到以下错误:
'FluentData.IDbCommand' does not contain a definition for 'Query' and no extension method 'Query' accepting a first argument of type 'FluentData.IDbCommand' could be found (are you missing a using directive or an assembly reference?)
的代码行如下:
var result = Proxy.Context.Sql(query.ToString()).Query<T>().FirstOrDefault();
我也试着删除提及。然后打开NuGet并搜索fluentdata并单击安装按钮,我仍然得到相同的错误。如果从NuGet安装,它将以下代码行添加到.config文件中:
<package id="FluentData" version="3.0.0.0" targetFramework="net45" />
任何帮助将不胜感激。