/// <summary>
        /// Initializes a new instance of the CompactSqlDataConnection class.
        /// </summary>
        /// <param name="existingConnection">An Existing CompactSqlDataConnection Object.</param>
        public CompactSqlDataConnection(CompactSqlDataConnection existingConnection)
        {
            this.Clear();

            this.databaseFullPath = existingConnection.DatabaseFullPath;
        }
        /// <summary>
        /// Creates a new instance of the CompactSqlDataConnection class using the passed in connectionstring.
        /// </summary>
        /// <param name="connectionstring">A formatted connection string which will allow a connection to a sql server compact edition database.</param>
        /// <returns>A new instance of the compact sql data connection class.</returns>
        public static CompactSqlDataConnection GetConnectionFromConnectionstring(string connectionstring)
        {
            CompactSqlDataConnection newConnection = new CompactSqlDataConnection();

            if (!String.IsNullOrEmpty(connectionstring))
            {
                if (connectionstring.Contains(";"))
                {
                    string[] connectionstringParts = connectionstring.Split(';');

                    if (connectionstringParts.Length > 0)
                    {
                        newConnection = new CompactSqlDataConnection();
                        string path = connectionstringParts[0].Substring(connectionstringParts[0].IndexOf("=") + 1);

                        newConnection.DatabaseFullPath = path;
                    }
                }
            }

            return newConnection;
        }