[英]Building a datasource object from SQL
Did a quick search on SO, couldn't find what I need: 对SO进行了快速搜索,找不到我需要的东西:
I am in process of trying out a new control suite (DevExpress ASP) and need to bind the TabStrip control to a datasource from SQL. 我正在尝试一个新的控件套件(DevExpress ASP),需要将TabStrip控件绑定到SQL的数据源。 The online documentation states that "any object that implements the IHierarchicalEnumerable or IHierarchicalDataSource interface (eg SiteMapDataSource, XmlDataSource) may be used as a data source for this control. " 在线文档指出: “任何实现IHierarchicalEnumerable或IHierarchicalDataSource接口的对象(例如SiteMapDataSource,XmlDataSource)都可以用作此控件的数据源。”
Having no experience with interfaces, How do I put my stored proc's XML results into an object as described by the documentation? 没有接口经验,如何将存储的proc的XML结果放入文档所述的对象中?
ps: I have NO LINQ experience either. ps:我也没有LINQ经验。
You need to build a data source that allows transforming your data to an hierarchical structure. 您需要构建一个数据源,以将数据转换为层次结构。 Here is an interesting example of an implementation of an IHierarchicalDataSource that allows browsing the file system. 这是一个允许浏览文件系统的IHierarchicalDataSource实现的有趣示例 。 It might give you an idea of how to do this. 它可能会让您了解如何执行此操作。
Good luck. 祝好运。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.