Page 1 of 1

DataContext.Dispose()

Posted: Mon 02 Mar 2009 14:20
by degas
I need to close the connection of the DataContext. The thing is that i am using it on an ASP.NET enviorement, wich takes the OracleConnectionString from the we.config. Does the method Dispose() closes the underlaying connection?

Posted: Mon 02 Mar 2009 14:52
by AndreyR
You can call the dataContext.Connection.Close() method.