示例#1
0
        /// <summary>
        /// 释放资源
        /// </summary>
        public void Dispose()
        {
            if (databaseSchema != null)
            {
                databaseSchema.Dispose();
            }
            if (tableSchema != null)
            {
                tableSchema.Dispose();
            }

            this.databaseSchema = null;
            this.tableSchema    = null;
        }
示例#2
0
        /// <summary>
        /// 释放资源
        /// </summary>
        public void Dispose()
        {
            if (databaseSchema != null)
            {
                databaseSchema.Dispose();
            }
            if (dbContexSchema != null)
            {
                dbContexSchema.Dispose();
            }
            if (modelSchema != null)
            {
                modelSchema.Dispose();
            }
            if (tableSchema != null)
            {
                tableSchema.Dispose();
            }

            this.databaseSchema = null;
            this.dbContexSchema = null;
            this.modelSchema    = null;
            this.tableSchema    = null;
        }