public DataRow[] LoadEdges(string[] edges) { StringBuilder inQueryBuilder = new StringBuilder(); for (int i = 0; i < edges.Length; i++) { inQueryBuilder.Append("'" + edges [i] + "'" + (i < edges.Length - 1 ? "," : "")); } return(EdgesTable.Select(string.Format("Id IN ({0})", inQueryBuilder.ToString()))); }
public DataRow[] FindEdges(string labelStartsWith) { return(EdgesTable.Select(string.Format("Label LIKE '{0}%'", labelStartsWith))); }