DataContext.Dispose()

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
degas
Posts: 77
Joined: Mon 16 Feb 2009 18:36
Location: Argentina

DataContext.Dispose()

Post by degas » Mon 02 Mar 2009 14:20

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?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 02 Mar 2009 14:52

You can call the dataContext.Connection.Close() method.

Post Reply