Beispiel #1
0
        /// <summary>
        /// Clona el objeto FileGroups en una nueva instancia.
        /// </summary>
        public FileGroupFiles Clone(FileGroup parentObject)
        {
            FileGroupFiles columns = new FileGroupFiles(parentObject);

            for (int index = 0; index < this.Count; index++)
            {
                columns.Add((FileGroupFile)this[index].Clone(parentObject));
            }
            return(columns);
        }
Beispiel #2
0
        public override ISchemaBase Clone(ISchemaBase parent)
        {
            FileGroup file = new FileGroup(parent);

            file.IsDefaultFileGroup = this.IsDefaultFileGroup;
            file.IsReadOnly         = this.IsReadOnly;
            file.Name         = this.Name;
            file.Id           = this.Id;
            file.Files        = this.Files.Clone(file);
            file.Guid         = this.Guid;
            file.IsFileStream = this.IsFileStream;
            return(file);
        }
Beispiel #3
0
 public static Boolean Compare(FileGroup origin, FileGroup destination)
 {
     if (destination == null)
     {
         throw new ArgumentNullException("destination");
     }
     if (origin == null)
     {
         throw new ArgumentNullException("origin");
     }
     if (origin.IsReadOnly != destination.IsReadOnly)
     {
         return(false);
     }
     if (origin.IsDefaultFileGroup != destination.IsDefaultFileGroup)
     {
         return(false);
     }
     if (origin.IsFileStream != destination.IsFileStream)
     {
         return(false);
     }
     return(true);
 }
Beispiel #4
0
 /// <summary>
 /// Constructor de la clase.
 /// </summary>
 /// <param name="parent">
 /// Objeto Database padre.
 /// </param>
 public FileGroupFiles(FileGroup parent)
 {
     this.Parent = parent;
 }