مشاركة عبر


BusinessLogicConnection Class

This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.

Represents a business logic connection.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Replication.BusinessLogicSupport.BusinessLogicConnection

Namespace:  Microsoft.SqlServer.Replication.BusinessLogicSupport
Assembly:  Microsoft.SqlServer.Replication.BusinessLogicSupport (in Microsoft.SqlServer.Replication.BusinessLogicSupport.dll)

Syntax

'Declaration
Public Class BusinessLogicConnection _
    Implements IDbConnection, IDisposable
'Usage
Dim instance As BusinessLogicConnection
public class BusinessLogicConnection : IDbConnection, 
    IDisposable
public ref class BusinessLogicConnection : IDbConnection, 
    IDisposable
type BusinessLogicConnection =  
    class 
        interface IDbConnection 
        interface IDisposable 
    end
public class BusinessLogicConnection implements IDbConnection, IDisposable

The BusinessLogicConnection type exposes the following members.

Constructors

  Name Description
Public method BusinessLogicConnection() Initializes a new instance of the BusinessLogicConnection class.
Public method BusinessLogicConnection(String) Initializes a new instance of the BusinessLogicConnection class.

Top

Properties

  Name Description
Public property ConnectionString Gets or sets the string used to open the connection.
Public property ConnectionTimeout Gets the time to wait for a connection to open.
Public property Database Gets the name of the current database after a connection is opened.
Public property State Gets a string that describes the state of the connection.

Top

Methods

  Name Description
Public method BeginTransaction() Starts a database transaction.
Public method BeginTransaction(IsolationLevel) Starts a database transaction with the specified isolation level.
Public method ChangeDatabase Changes the current database for an open connection.
Public method Close Closes the connection to the database.
Public method CreateCommand Creates and returns an IDbCommand object associated with the current connection.
Public method Dispose Releases all resources used by the BusinessLogicConnection.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Open Opens a database connection with the settings specified by the ConnectionString.
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Replication.BusinessLogicSupport Namespace