共用方式為


ConnectionSettings.NonPooledConnection Property

Definition

By default, all connections to SQL Server are taken from an ADO.NET connection pool.If set to true, this allows users to create a non-pooled connection (will not be reused when closed). Exceptions: ConnectionCannotBeChangedException

public bool NonPooledConnection { get; set; }
member this.NonPooledConnection : bool with get, set
Public Property NonPooledConnection As Boolean

Property Value

Applies to