Example #1
0
        /// <summary>
        /// Check if the connection has path.
        /// </summary>
        /// <param name="connection"></param>
        /// <param name="path">relative path</param>
        /// <returns></returns>
        public static bool HasRowPath(SQLiteConnection connection, string path)
        {
            long count = 0;

            using (SQLiteCommand command = connection.CreateCommand())
            {
                DBDwgFileCommands.SelectCount(command, path);
                count = Convert.ToInt64(command.ExecuteScalar());
            }
            return(count == 1);
        }