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; TemplateQuestoesDAO = null; disposedValue = true; } }
/// <summary> /// Inicializa uma instância da classe. Recebendo como parametro a conexao com banco de dados /// </summary> public TemplateQuestoesBO(System.Data.IDbConnection pIDbConnection, ObjectSecurity pObjectSecurity) : base() { TemplateQuestoesDAO = new TemplateQuestoesDAO(pIDbConnection, pObjectSecurity); objectSecurity = pObjectSecurity; }