예제 #1
0
 public Table(Database parent)
     : base("[", "]", StatusEnum.ObjectTypeEnum.Table)
 {
     columns     = new Columns(this);
     constraints = new Constraints(this);
     options     = new TableOptions(this);
     triggers    = new TableTriggers(this);
     this.Status = StatusEnum.ObjectStatusType.OriginalStatus;
     this.Parent = parent;
 }
예제 #2
0
        /// <summary>
        /// Clona el objeto Triggers en una nueva instancia.
        /// </summary>
        public TableTriggers Clone(Table parent)
        {
            TableTriggers options = new TableTriggers(parent);

            for (int index = 0; index < this.Count; index++)
            {
                options.Add(this[index].Clone(parent));
            }
            return(options);
        }