简体   繁体   中英

Building a datasource object from SQL

Did a quick search on SO, couldn't find what I need:

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. 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. "

Having no experience with interfaces, How do I put my stored proc's XML results into an object as described by the documentation?

ps: I have NO LINQ experience either.

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. It might give you an idea of how to do this.

Good luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM