Esempio n. 1
0
        /// <summary>
        /// Clona el objeto Table en una nueva instancia.
        /// </summary>
        public override ISchemaBase Clone(ISchemaBase objectParent)
        {
            var table = new Table(objectParent)
            {
                Owner                        = Owner,
                Name                         = Name,
                Id                           = Id,
                Guid                         = Guid,
                Status                       = Status,
                FileGroup                    = FileGroup,
                FileGroupText                = FileGroupText,
                FileGroupStream              = FileGroupStream,
                HasClusteredIndex            = HasClusteredIndex,
                HasChangeTracking            = HasChangeTracking,
                HasChangeTrackingTrackColumn = HasChangeTrackingTrackColumn,
                HasChangeDataCapture         = HasChangeDataCapture,
                dependenciesCount            = DependenciesCount
            };

            table.Columns      = Columns.Clone(table);
            table.Options      = Options.Clone(table);
            table.CompressType = CompressType;
            table.Triggers     = Triggers.Clone(table);
            table.Indexes      = Indexes.Clone(table);
            table.Partitions   = Partitions.Clone(table);
            return(table);
        }