0

我在 Typed DataSet 中有两个名为 tblA 和 tblB 的数据表

注意:两个表都有不同的数据结构。

让我知道如何将两个无类型数据集合并到上述类型数据集。

Dear Tony,
Thanks for your effort. 
But please understand my question.

I have 2 DataTable in Typed DataSet 
DataTable names are: tblA and tblB

Now i have to merge Untyped Dataset one by one.

i need to map and merge.
Like:

UnTypedDATASET.TABLE("TABLEONE")

NOW LET ME KNOW HOW TO MERGE THIS WITH TYPEDDATASET.TABLE("tblA")

i did like this: TypedDataSet.merge(DS.table("tblA"))
but its mapping to tblB instead of tblA

Expecting your valuable help.
4

2 回答 2

2

获得了将 UNTYPED DATASET 与 TYPED DATASET 合并的解决方案

Typed_DS.Tables("tblA").Merge(UnTyped_DS.Tables("tablename"), True, MissingSchemaAction.Ignore)

问候,蒂鲁。

于 2012-04-06T22:33:35.557 回答
0
myTypedDataset.Merge(myUntypedDataset)

不是很有趣,但这是两秒钟的谷歌。

于 2012-04-05T21:08:22.783 回答