Esempio n. 1
0
        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())));
        }
Esempio n. 2
0
 public DataRow[] FindEdges(string labelStartsWith)
 {
     return(EdgesTable.Select(string.Format("Label LIKE '{0}%'", labelStartsWith)));
 }