public static ServerInstanceRow Copy(ITableRow sourceRow)
        {
            ServerInstanceRow row = new ServerInstanceRow();

            sourceRow.CopyValues(row);
            return(row);
        }
 public static ServerInstanceRow Copy(ITableRow sourceRow)
 {
     ServerInstanceRow row = new ServerInstanceRow();
     sourceRow.CopyValues(row);
     return row;
 }
		private InstanceInfo CreateFromRow(ServerInstanceRow instanceRow)
		{
			long     loginId  = instanceRow.LoginId;
			LoginRow loginRow = this._loginManager.GetLogin(loginId);

			AuthenticationInfo authInfo = new AuthenticationInfo
			{
				Username  = loginRow.Login,
				Password  = loginRow.Password,
				IsWindows = loginRow.IsWinAuth
			};

			string conName = instanceRow.ConnectionName;

			InstanceInfo instanceInfo = new InstanceInfo(instanceRow.IsDynamicConnection)
			{
				Authentication = authInfo,
				IsODBC         = instanceRow.IsOdbc,
				DbType         = instanceRow.DbType,
				IsEnabled      = true,
				Name           = conName,
				Instance       = conName
			};

			instanceInfo.SetServerProperties(
				new ServerProperties(
					new InstanceVersion(instanceRow.ServerInstanceVersion),
					instanceRow.ServerInstanceName,
					DateTime.Now
				)
			);

			return instanceInfo;
		}
		public void DeleteInstance(ServerInstanceRow savedRow)
		{
			savedRow.IsDeleted = true;

			this._storage.ServerInstanceDirectory.UpdateRow(savedRow);
		}