/// <summary> /// Compara dos triggers y devuelve true si son iguales, caso contrario, devuelve false. /// </summary> public static Boolean Compare(FileGroupFile origin, FileGroupFile destination) { if (destination == null) { throw new ArgumentNullException("destination"); } if (origin == null) { throw new ArgumentNullException("origin"); } if (origin.Growth != destination.Growth) { return(false); } if (origin.IsPercentGrowth != destination.IsPercentGrowth) { return(false); } if (origin.IsSparse != destination.IsSparse) { return(false); } if (origin.MaxSize != destination.MaxSize) { return(false); } if (!origin.PhysicalName.Equals(destination.PhysicalName)) { return(false); } return(true); }
public override ISchemaBase Clone(ISchemaBase parent) { FileGroupFile file = new FileGroupFile(parent); file.Growth = this.Growth; file.Id = this.Id; file.IsPercentGrowth = this.IsPercentGrowth; file.IsSparse = this.IsSparse; file.MaxSize = this.MaxSize; file.Name = this.Name; file.PhysicalName = this.PhysicalName; file.Size = this.Size; file.Type = this.Type; return(file); }