开发者

How to handle relational data in C# without the use of classes

How to store/handle relational data in C# eg. many to many relationship

Please note a class for each entitiy is NOT an option here, though that the only solution I can think about righ now.

XML is not an option either.

What data structure will handle relational 开发者_如何学运维data?

Can I use Jagged array or list, if so how?

Note: the data is not stored in a database but will be dynamically created.


Have a look at System.Data.DataSet and its related classes. It's usage is usually frowned upon because best practices often suggest a class hierarchy to represent the data. But if it's relational data in memory you want, this is a rich set of classes that the .Net Framework provides. You can fill it dynamically, too, the DataSet does not have to be populated through ADO.Net.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜