linq to xml是否支持智能? [英] does linq to xml support intellisence ?

查看:54
本文介绍了linq to xml是否支持智能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi ..
在我的项目中,我正在使用xml文件进行数据存储.我正在使用linq访问该文件以进行xml查询.实际上,我已经从sql服务器数据库中创建了该xml文件,但是由于sql中的表包含50多个列,因此生成的xml文件也包含50多个元素..
现在,在应用查询时..我最初将xml文件加载到xdocument对象中,然后在该对象上应用查询..
我的主要问题是,由于它包含50多个元素,因此如果没有智能支持,就很难编写查询...为什么不支持智能?我犯了什么错误?我需要做些什么才能获得智力支持..
谢谢...

hi..
in my project i am using xml file for datastorage. i am accessing that file with linq to xml queries. actually i have created that xml file from my sql server database but as that tables in sql contained more that 50 columns, the resultant xml file is also having more than 50 elements ..
now while applying queries..I initially load that xml file in xdocument object and after that applying queries on that..
my main problem is that as it contain more than 50 element it is very difficult to write queries without intellisence support...why it is not supporting intellisence? what mistake i have made? what i have to do to get intellisence support..
thanks...

推荐答案

请检查在项目中添加的引用和在页面中添加的名称空间.
Please check References you added in your project and the namespaces added in the pages.


这篇关于linq to xml是否支持智能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆