/// <summary>
        /// Checks to see if the given object is equivalent to this object
        /// </summary>
        /// <remarks>
        /// Need to do this since we are overridin GetHashCode().
        /// </remarks>
        /// <param name="obj">Another ActionInfo object</param>
        /// <returns>True if the objects represent the same controller action.  False otherwise</returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            return(InstanceName.Equals(((ActionInfo)obj).InstanceName));
        }
예제 #2
0
        public override bool Equals(object obj)
        {
            var other = obj as ActionInfo;

            if (obj == null)
            {
                return(false);
            }

            return(InstanceName.Equals(other.InstanceName));
        }
예제 #3
0
 public string StandardSecurityConnectionString()
 {
     if (InstanceName.Equals(""))
     {
         return("Server=" + Host + ";Database=" + DbName + ";User Id=" + User + ";Password="******";");
     }
     else
     {
         return("Server=" + Host + @"\" + InstanceName + ";Database=" + DbName + ";User Id=" + User + ";Password="******";");
     }
 }