Пример #1
0
        public static void Del(TbExecutablePathEntity entity)
        {
            var db = new TbExecutablePath();

            db.Open();
            db.ExeSQL(string.Format("delete from {0} where name='{1}'", db.TB_EXE_PATH, entity.name));
            db.Close();
        }
Пример #2
0
        public static void UpdateOrAdd(TbExecutablePathEntity entity)
        {
            Del(entity);
            var db = new TbExecutablePath();

            db.Open();
            db.ExeSQL(string.Format("insert into {0} (name,path) values('{1}','{2}')", db.TB_EXE_PATH, entity.name, entity.path));
            db.Close();
        }