本文介绍了与Nhibernate一起使用Linq的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将vs2010与c#,Asp和Nhibernate一起使用 我想将Linq与Nhibernate一起使用. 尽管我在Bin中添加了Linq的引用(在asp项目中),并且还 通过在页面顶部使用进行调用 但它给了我错误
i am using vs2010 with c#,Asp and Nhibernate I want to use Linq with Nhibernate. although i have added reference of Linq in Bin ( in asp project ) and also call it by using on top of the page but its giving me error
Error 1 The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) D:\Working\Documents\Visual Studio 2010\WebSites\Lesson1\Employee.aspx.cs 13 14 D:\...\Lesson1\请帮助解决
Kindly help to resolve
推荐答案您需要使用.Net 4.0(或3.5吗?不确定),您应该使用System.Linq,并且您需要添加对System.Linq.dll的引用. You need to be using .Net 4.0 (or 3.5? not sure about that), you should have using System.Linq, and you need to add a reference to System.Linq.dll.
更多推荐
与Nhibernate一起使用Linq
发布评论