예제 #1
0
파일: Table.cs 프로젝트: Thomas89/SQLoogle
        /// <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);
        }
예제 #2
0
파일: PolyChunk.cs 프로젝트: inrg/sa_tools
            public Strip Clone()
            {
                Strip result = (Strip)MemberwiseClone();

                result.Indexes = (ushort[])Indexes.Clone();
                if (UVs != null)
                {
                    result.UVs = new UV[UVs.Length];
                    for (int i = 0; i < UVs.Length; i++)
                    {
                        result.UVs[i] = UVs[i].Clone();
                    }
                }
                if (VColors != null)
                {
                    result.VColors = (Color[])VColors.Clone();
                }
                if (UserFlags1 != null)
                {
                    result.UserFlags1 = (ushort[])UserFlags1.Clone();
                }
                if (UserFlags2 != null)
                {
                    result.UserFlags2 = (ushort[])UserFlags2.Clone();
                }
                if (UserFlags3 != null)
                {
                    result.UserFlags3 = (ushort[])UserFlags3.Clone();
                }
                return(result);
            }
예제 #3
0
파일: PolyChunk.cs 프로젝트: inrg/sa_tools
            public virtual Poly Clone()
            {
                Poly result = (Poly)MemberwiseClone();

                Indexes = (ushort[])Indexes.Clone();
                return(result);
            }
예제 #4
0
 public override IItemRenderer Clone()
 {
     return(new ItemBlockModelRenderer(_block, Model, null, _resource)
     {
         Vertices = (VertexPositionNormalTextureColor[])Vertices.Clone(),
         Indexes = (short[])Indexes.Clone()
     });
 }
예제 #5
0
 public override IItemRenderer Clone()
 {
     return(new ItemBlockModelRenderer(_block, Model, null, _resource)
     {
         Vertices = (BlockShaderVertex[])Vertices.Clone(),
         Indexes = (short[])Indexes.Clone()
     });
 }
예제 #6
0
 public TableSchema Clone()
 {
     return(new TableSchema
     {
         Name = Name,
         Columns = (TableColumnSchema[])Columns.Clone(),
         Indexes = (IndexSchema[])Indexes.Clone(),
         Keys = (KeySchema[])Keys.Clone()
     });
 }