开发者

Is IHierarchicalEnumerable the prefered way of dealing with hierarchical data?

开发者 https://www.devze.com 2023-01-31 02:38 出处:网络
I\'m building an asp.net mvc app, I want to build u开发者_如何学Gop an hierarchical structure, is IHierarchicalEnumerable and IHierarchyData the best way to implement a hierarchical structure?Those tw

I'm building an asp.net mvc app, I want to build u开发者_如何学Gop an hierarchical structure, is IHierarchicalEnumerable and IHierarchyData the best way to implement a hierarchical structure?


Those two interfaces were written with ASP.NET WebForms in mind (they are not strongly-typed, so that WebForms DataSources can work with hierarchies of arbitrary object types). For an MVC application, you will probably be better off writing your own classes to describe the data hierarchy.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号