Exemple #1
0
 /// <summary>
 /// Copies this instance to another of the same type
 /// </summary>
 /// <param name="newItem">The new item where to copy this class content</param>
 public void CopyTo(SqlConnectionInfo newItem)
 {
     //From Connection base
     base.CopyTo(newItem);
     //Specific properties
     newItem.CommandsTimeout   = this.CommandsTimeout;
     newItem.ConnectionTimeout = this.ConnectionTimeout;
     newItem.Database          = this.Database;
     newItem.Password          = this.Password;
     newItem.Server            = this.Server;
     newItem.Trusted           = this.Trusted;
     newItem.Username          = this.Username;
 }