SQL Tools Service
Show / Hide Table of Contents
Improve this Doc View Source

Class SqlConnectionFactory

Factory class to create SqlClientConnections The purpose of the factory is to make it easier to mock out the database in 'offline' unit test scenarios.

Inheritance
System.Object
SqlConnectionFactory
Namespace:Microsoft.SqlTools.ServiceLayer.Connection
Assembly:Microsoft.SqlTools.ServiceLayer.dll
Syntax
public class SqlConnectionFactory : ISqlConnectionFactory

Methods

| Improve this Doc View Source

CreateSqlConnection(String)

Creates a new SqlConnection object

Declaration
public DbConnection CreateSqlConnection(string connectionString)
Parameters
Type Name Description
System.String connectionString
Returns
Type Description
System.Data.Common.DbConnection
  • Improve this Doc
  • View Source
In This Article
  • Methods
    • CreateSqlConnection(String)

© Microsoft  //  Generated with DocFX