/// <summary>
 /// Compara dos campos y devuelve true si son iguales, caso contrario, devuelve false.
 /// </summary>
 public static Boolean Compare(ColumnConstraint origen, ColumnConstraint destino)
 {
     if (destino == null) throw new ArgumentNullException("destino");
     if (origen == null) throw new ArgumentNullException("origen");
     if (origen.NotForReplication != destino.NotForReplication) return false;
     if (origen.Disabled != destino.Disabled) return false;
     if ((!origen.Definition.Equals(destino.Definition)) && (!origen.Definition.Equals("(" + destino.Definition + ")"))) return false;
     return true;
 }
 /// <summary>
 /// Clona el objeto ColumnConstraint en una nueva instancia.
 /// </summary>
 public ColumnConstraint Clone(Column parent)
 {
     ColumnConstraint ccons = new ColumnConstraint(parent);
     ccons.Name = this.Name;
     ccons.Type = this.Type;
     ccons.Definition = this.Definition;
     ccons.Status = this.Status;
     ccons.Disabled = this.Disabled;
     ccons.Owner = this.Owner;
     return ccons;
 }
Exemple #3
0
        /// <summary>
        /// Clona el objeto ColumnConstraint en una nueva instancia.
        /// </summary>
        public ColumnConstraint Clone(Column parent)
        {
            ColumnConstraint ccons = new ColumnConstraint(parent);

            ccons.Name       = this.Name;
            ccons.Type       = this.Type;
            ccons.Definition = this.Definition;
            ccons.Status     = this.Status;
            ccons.Disabled   = this.Disabled;
            ccons.Owner      = this.Owner;
            return(ccons);
        }
Exemple #4
0
 /// <summary>
 /// Compara dos campos y devuelve true si son iguales, caso contrario, devuelve false.
 /// </summary>
 public static Boolean Compare(ColumnConstraint origen, ColumnConstraint destino)
 {
     if (destino == null)
     {
         throw new ArgumentNullException("destino");
     }
     if (origen == null)
     {
         throw new ArgumentNullException("origen");
     }
     if (origen.NotForReplication != destino.NotForReplication)
     {
         return(false);
     }
     if (origen.Disabled != destino.Disabled)
     {
         return(false);
     }
     if ((!origen.Definition.Equals(destino.Definition)) && (!origen.Definition.Equals("(" + destino.Definition + ")")))
     {
         return(false);
     }
     return(true);
 }