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