与Nhibernate一起使用Linq [英] Using Linq with Nhibernate
本文介绍了与Nhibernate一起使用Linq的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将vs2010与c#,Asp.net和Nhibernate一起使用
我想将Linq与Nhibernate一起使用.
尽管我在Bin中添加了Linq的引用(在asp.net项目中),并且还
通过在页面顶部使用
进行调用
但它给了我错误
i am using vs2010 with c#,Asp.net and Nhibernate
I want to use Linq with Nhibernate.
although i have added reference of Linq in Bin ( in asp.net 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文