public bool Compare(XMLSchema obj) { if (obj == null) { throw new ArgumentNullException("obj"); } if (!this.Text.Equals(obj.Text)) { return(false); } return(true); }
/// <summary> /// Clona el objeto en una nueva instancia. /// </summary> public new XMLSchema Clone(ISchemaBase parent) { XMLSchema item = new XMLSchema(parent); item.Text = this.Text; item.Status = this.Status; item.Name = this.Name; item.Id = this.Id; item.Owner = this.Owner; item.Guid = this.Guid; item.Dependencys = this.Dependencys; return item; }
/// <summary> /// Clona el objeto en una nueva instancia. /// </summary> public new XMLSchema Clone(ISchemaBase parent) { XMLSchema item = new XMLSchema(parent); item.Text = this.Text; item.Status = this.Status; item.Name = this.Name; item.Id = this.Id; item.Owner = this.Owner; item.Guid = this.Guid; item.Dependencys = this.Dependencys; return(item); }
public void Fill(Database database, string connectionString) { //TODO XML_SCHEMA_NAMESPACE function not supported in Azure, is there a workaround? //not supported in azure yet if (database.Info.Version == DatabaseInfo.VersionTypeEnum.SQLServerAzure10) return; if (database.Options.Ignore.FilterXMLSchema) { root.RaiseOnReading(new ProgressEventArgs("Reading XML Schema...", Constants.READING_XMLSCHEMAS)); using (SqlConnection conn = new SqlConnection(connectionString)) { using (SqlCommand command = new SqlCommand(GetSQLXMLSchema(), conn)) { conn.Open(); command.CommandTimeout = 0; using (SqlDataReader reader = command.ExecuteReader()) { while (reader.Read()) { root.RaiseOnReadingOne(reader["name"]); XMLSchema item = new XMLSchema(database); item.Id = (int)reader["ID"]; item.Name = reader["name"].ToString(); item.Owner = reader["owner"].ToString(); item.Text = reader["Text"].ToString(); database.XmlSchemas.Add(item); } } } } if (database.Options.Ignore.FilterTable) FillColumnsDependencies(database.XmlSchemas, connectionString); } }
public bool Compare(XMLSchema obj) { if (obj == null) throw new ArgumentNullException("obj"); if (!this.Text.Equals(obj.Text)) return false; return true; }