How to remove “diffgr:before” content from returned dataset via webservice

前端 未结 1 1010
梦如初夏
梦如初夏 2021-01-17 23:31

I have a web method:

public DataSet SyncedWall()
    {
            DataSet dst = dscomment;
            dst.Tables[0].Rows[i][\"WallInfo\"] = \"my own modifi         


        
1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-18 00:14

    Hurreeyyyyyy!!!

    I've found the answer after scratching my head upto couples of hours. :P Before returning the dataset just call for datasetObject.AcceptChanges(); and you're done.

    So here is the code:

    public DataSet SyncedWall()
        {
                DataSet dst = dscomment;
                dst.Tables[0].Rows[i]["WallInfo"] = "my own modified value";
                dst.AcceptChanges();
                return dst;
        }
    

    0 讨论(0)
提交回复
热议问题