internal static LinksDataSet.tblMarkerGen2DataTable PairRelevantMarkerRows( Int64 relatedIDLeft, Int64 relatedIDRight, LinksDataSet dsLinks, Int32 extendedID ) { string select = string.Format("{0}={1} AND {2} IN ({3},{4})", extendedID, dsLinks.tblMarkerGen2.ExtendedIDColumn.ColumnName, dsLinks.tblMarkerGen2.RelatedIDColumn.ColumnName, relatedIDLeft, relatedIDRight); LinksDataSet.tblMarkerGen2Row[] drs = (LinksDataSet.tblMarkerGen2Row[])dsLinks.tblMarkerGen2.Select(select); //if ( drs.Length <= 0 ) { // return null; //} //else { LinksDataSet.tblMarkerGen2DataTable dt = new LinksDataSet.tblMarkerGen2DataTable(); foreach ( LinksDataSet.tblMarkerGen2Row dr in drs ) { dt.ImportRow(dr); } return dt; }