/// <summary> /// ���캯�� /// </summary> public HOrgnizationBB() { this.selfConn = true; this.connection = new SqlConnection(HS.Config.SqlDataObject.GetSqlConnectionString); this.connection.Open(); this.orgnizationDB = new HOrgnizationDB(this.connection); }
/// <summary> /// ���캯�� /// </summary> /// <param name="connection">��������</param> public HOrgnizationBB(SqlConnection connection) { this.connection = connection; this.orgnizationDB = new HOrgnizationDB(connection); }
protected virtual void Dispose(bool disposing) { if (!disposing) return; if (this.selfConn) { this.connection.Close(); this.connection.Dispose(); this.connection = null; } if (this.orgnizationDB != null) { this.orgnizationDB.Dispose(); this.orgnizationDB = null; } }