Ejemplo n.º 1
0
        /// <summary>
        ///     Deletes all store objects specified in the store item collection from the
        ///     database and the database itself.
        /// </summary>
        /// <param name="connection">
        ///     Connection to an existing database that needs to be deleted.
        /// </param>
        /// <param name="commandTimeout">
        ///     Execution timeout for any commands needed to delete the database.
        /// </param>
        /// <param name="storeItemCollection">
        ///     The structure of the database to be deleted.
        /// </param>
        protected override void DbDeleteDatabase(
            DbConnection connection,
            int?commandTimeout,
            StoreItemCollection storeItemCollection)
        {
            EffortConnectionStringBuilder connectionString =
                new EffortConnectionStringBuilder(connection.ConnectionString);

            DbContainerStore.RemoveDbContainer(connectionString.InstanceId);
        }
Ejemplo n.º 2
0
        internal virtual void UnregisterContainer()
        {
            var builder = new EffortConnectionStringBuilder(this.ConnectionString);

            DbContainerStore.RemoveDbContainer(builder.InstanceId);
        }