Last post Dec 27, 2006 05:00 AM by MIB426
Dec 14, 2006 04:56 AM|venkatzeus|LINK
i am using the Data Access Application Block of the Enterprise library 2.0. In the code, i have used:
Is it possible to dispose the database object? If yes, how to achieve that?
Dec 27, 2006 05:00 AM|MIB426|LINK
From Enterprise library document, you dont need to dispose database object.
If you are worried about connection open issue then you can use using() or try..catch..funally to close connection.
PS. for db.ExecuteScalar....you dont need to worry about connection. it will close it for you.