/// <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); }
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); }
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); }
/// <summary> /// Constructor de la clase. /// </summary> /// <param name="parent"> /// Objeto Database padre. /// </param> public FileGroupFiles(FileGroup parent) { this.Parent = parent; }