示例#1
0
 /// <summary>
 /// ���캯��
 /// </summary>
 public PRoleBB()
 {
     this.selfConn = true;
     this.connection = new SqlConnection(HS.Config.SqlDataObject.GetSqlConnectionString);
     this.connection.Open();
     this.roleDB = new PRoleDB(this.connection);
 }
示例#2
0
 /// <summary>
 /// ���캯��
 /// </summary>
 /// <param name="connection">��������</param>
 public PRoleBB(SqlConnection connection)
 {
     this.connection = connection;
     this.roleDB = new PRoleDB(connection);
 }
示例#3
0
        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;
            }
        }