public IList <string> listRefs(SourceCode scr)
        {
            IList <string> extRefs = new List <string>();

            foreach (SourceCodeReference extRef in list(scr.Type_owner, scr.Id_owner_container, scr.Id_owner, scr.File_name))
            {
                Console.WriteLine("SOURCE CODE EXTERNAL REFERENCE " + extRef.Reference);
                extRefs.Add(extRef.Reference);
            }

            return(extRefs);
        }
Пример #2
0
        }        //list

        internal void update(SourceCode ss)
        {
            String contents = ss.Contents.Replace("'", "\\'");

            Console.WriteLine(contents);

            String sql =
                "UPDATE sourcecode SET contents='" + contents + "' WHERE type_owner like '" + ss.Type_owner + "'"
                + " and id_owner like '" + ss.Id_owner + "'"
                + " and file_name like '" + ss.File_name + "'"
                + " and id_owner_container = " + ss.Id_owner_container;


            Connector.performSQLUpdate(sql);
        }
 public IList <SourceCodeReference> list(SourceCode scr)
 {
     return(list(scr.Type_owner, scr.Id_owner_container, scr.Id_owner, scr.File_name));
 }