Yes, it will; the implementation of DbConnection.Dispose()
calls Close()
(and so do its derived implementations).
More Related Contents:
- How to Get Server name and instance name in c# and show in combobox
- What is the C# Using block and why should I use it? [duplicate]
- Do HttpClient and HttpClientHandler have to be disposed between requests?
- C# Data Connections Best Practice?
- Insert 2 million rows into SQL Server quickly
- Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints
- Is there a .NET/C# wrapper for SQLite? [closed]
- How do I create a HashCode in .net (c#) for a string that is safe to store in a database?
- How do I connect to an MDF database file?
- Using statement vs. IDisposable.Dispose()
- Reading data from XML [duplicate]
- How to compare only Date without Time in DateTime types in Linq to SQL with Entity Framework?
- How to access ssis package variables inside script component
- Using Statement with Generics: using ISet = System.Collections.Generic.ISet
- c# working with Entity Framework in a multi threaded server
- Questions about Entity Framework Context Lifetime
- Creating a database programmatically in SQL Server
- Is DbContext the same as DataContext?
- Is it possible to force the use of “using” for disposable classes?
- Bulk copy a DataTable into MySQL (similar to System.Data.SqlClient.SqlBulkCopy)
- When executing a stored procedure, what is the benefit of using CommandType.StoredProcedure versus using CommandType.Text?
- How to compare only Date without Time in DateTime types?
- Return DataReader from DataLayer in Using statement
- Writing driver class generic for any database support
- How to insert an image into an Access OLE field via .NET
- Persist Security Info Property=true and Persist Security Info Property=false
- How to use String property as primary key in Entity Framework
- What is the fastest way to read data from a DbDataReader?
- Retrieve List of Tables in MS Access File
- Is SqlConnection.Close() need inside a Using statement?