The name ‘ParameterDirection’ does not exist in the current context using Oracle.ManagedDataAccess.Client;

I am testing to get the id of an inserted row with dotnet with the package on the title (Oracle.ManagedDataAccess.Client) but when I try to specify the Parameter Direction the class is not recognized and get the error The name ‘ParameterDirection’ does not exist in the current context. I am using .NET 3.1
I am trying to specify it like this:

Good practice to open/close connections in an asp.net application?

I’ve been working on a web application in ASP.net. My application has several pages and all of them need to display tables that are populated by a database. Right now what I’m doing is, on each page, I’m opening a database connection, executing the query specific to that page, and closing the db connection. So this happens each time the user clicks a link to go to a new page or clicks a form control like the grid page.