Пример #1
0
        public static void SelectCount(SQLiteCommand command, string relPath)
        {
            Dictionary <string, string> conDict = new Dictionary <string, string> {
                { DBDwgFileName.RELATIVE_PATH, DBDwgFileName_AT.relPath }
            };
            Dictionary <string, object> paraDict = new Dictionary <string, object> {
                { DBDwgFileName_AT.relPath, relPath }
            };

            DBCommand.SelectCount(DBDwgFileName.name, conDict, paraDict, command);
        }
Пример #2
0
        public static bool HasRowID(SQLiteConnection connection, long ID)
        {
            long count = 0;

            using (SQLiteCommand command = connection.CreateCommand())
            {
                DBCommand.SelectCount(DBDwgFileName.name, ID, command);
                count = Convert.ToInt64(command.ExecuteScalar());
            }
            return(count == 1);
        }