Skip to content

Commit

Permalink
Explaining why to use pooling
Browse files Browse the repository at this point in the history
  • Loading branch information
marcio-santos-zocdoc committed May 12, 2016
1 parent 8d2a9fe commit bad6b2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model/Command/BaseCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public Database CreateDatabase(IList<string> filteredTypes = null)
DataSource = Server,
InitialCatalog = DbName,
IntegratedSecurity = string.IsNullOrEmpty(User),
//setting up pooling false to avoid re-use of connection while using the library.
//http://www.c-sharpcorner.com/article/understanding-connection-pooling/
Pooling = false
};
if (!builder.IntegratedSecurity)
Expand Down

0 comments on commit bad6b2c

Please sign in to comment.