与Nhibernate一起使用Linq

编程入门 行业动态 更新时间:2024-10-27 04:38:48
本文介绍了与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

本文发布于:2023-11-22 00:22:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1615249.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Nhibernate   Linq

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!