Пример #1
0
 /// <summary>
 /// Compara dos triggers y devuelve true si son iguales, caso contrario, devuelve false.
 /// </summary>
 public static Boolean Compare(TableTrigger origen, TableTrigger destino)
 {
     if (destino == null)
     {
         throw new ArgumentNullException("destino");
     }
     if (origen == null)
     {
         throw new ArgumentNullException("origen");
     }
     if (!origen.Text.Equals(destino.Text))
     {
         return(false);
     }
     if (!origen.Manipulation.Equals(destino.Manipulation))
     {
         return(false);
     }
     if (!origen.Timing.Equals(destino.Timing))
     {
         return(false);
     }
     if (!origen.Mode.Equals(destino.Mode))
     {
         return(false);
     }
     return(true);
 }
Пример #2
0
        public TableTrigger Clone(Table parentObject)
        {
            TableTrigger item = new TableTrigger(parentObject);

            item.Id           = this.Id;
            item.Manipulation = this.Manipulation;
            item.Mode         = this.Mode;
            item.Name         = this.Name;
            item.Owner        = this.Owner;
            item.Text         = this.Text;
            item.Timing       = this.Timing;
            return(item);
        }