我有这样的情况:从数据库我得到像这样的数据
-------------------------------------------------
ID BOOK_NAME AUTHOR REMARKS
1 ASP.Net xyz It is a good book.
1 ASP.Net xyz I like this book.
1 ASP.Net xyz It worth buying.
2 C#.net abc It is a average book.
2 C#.net abc It is good for beginner.
--------------------------------------------------
如您所见,我对特定书籍详细信息有多个评论。我把它作为一个数据集。我的问题是删除重复的行并将其设置为类似于 DataSet 中的内容。
-------------------------------------------------
ID BOOK_NAME AUTHOR REMARKS
1 ASP.Net xyz It is a good book.
I like this book.
It worth buying.
2 C#.net abc It is a average book.
It is good for beginner.
--------------------------------------------------
创建数据集后,我必须使用 dataSetObj.GetXml(); 转换为 XML;
知道如何在 C# 中执行此操作吗?