i have problem rejecting dataset self-related tables.
first insert parent row , child row in table. call rejectchanges method table object or same method dataset. rejectchagnes method throws rownotintableexception.
this code demostrate (testrejectchanges.zip):
dataset dataset = new dataset(); //parent row dataset.tablerow parentrowoverdataset = dataset.table.addtablerow(1, "parent", null); //child row dataset.table.addtablerow(2, "child", parentrowoverdataset); //this line crash because child row detached before rolback (in rejectchanges method code) dataset.table.rejectchanges(); //also crash //foreach (dataset.tablerow row in dataset.table.tolist()) //{ // row.rejectchanges(); //} //also crash //dataset.rejectchanges();
i tryed override rejectchanges of datatable method not virtual. there way using rejectchanges of dataset?
i opened ms solve case (using msdn lisence) and, after month of waiting response, wrote me next:
i did research , had discussed 1 of our team member in pg , appears design issue of now.
i went through troubleshooting , suggestion:
thanks lot feedback on issue. @ point of time, going file dcr (design change request) see if can consider functionality in up-coming release.
then has no solution moment.
Comments
Post a Comment