C # Get two DataTable intersections, parallel, difference

//IEnumerable QOld = vDTOld.AsEnumerable().ToList(); ////Compare the intersection of two data sources //IEnumerable QJJ = vDTOld.Asnum (DTNew.AsEnumerable(), DataRowComparer.Default); ////The intersection of two data sources //DataTable DTJJ = QJJ. CopyToDataTable(); // Get the difference between two data sources /// num DataRow> QCJ = vDTOld.AsEnumerable().Except(DTNew.AsEnumerable(), DataRowComparer.Default); The difference set of the two data sources ////Get the dataTable DTCJ = QCJ. Copy //To Union of two data sources IEnumerable QBJ = vDTOld.AsEnumerable().Union(DTNew.AsEnumerable(), DataRowComparer.Default); Data = Union of two data sources Table (Copy To J TB Table Q) (DataRow> QBJ = vDTOld.AsEnumerable().

Leave a Comment

Your email address will not be published.