示例#1
0
        private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    // TODO: dispose managed state (managed objects).
                }
                // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
                // TODO: set large fields to null.
                objectSecurity = null;
                OpcoesDAO      = null;

                disposedValue = true;
            }
        }
示例#2
0
 /// <summary>
 /// Inicializa uma instância da classe. Recebendo como parametro a conexao com banco de dados
 /// </summary>
 public OpcoesBO(System.Data.IDbConnection pIDbConnection, ObjectSecurity pObjectSecurity) : base()
 {
     OpcoesDAO      = new OpcoesDAO(pIDbConnection, pObjectSecurity);
     objectSecurity = pObjectSecurity;
 }