コード例 #1
0
 public IConnectionStringBuilder BuildTimeout(int _timeout)
 {
     ///There is no timeout in SqlServer connection string, but for sample we use "Timeout"
     connection.AddConnectionPart(string.Format("Timeout={0}", _timeout));
     return(this);
 }
コード例 #2
0
 public IConnectionStringBuildDatabase BuildServer(string _server)
 {
     connection.AddConnectionPart(string.Format("Server={0}", _server));
     return(this);
 }