public TableExceptions(db2hbmconf conf) { if (null != conf.tables) { foreach (var k in conf.tables) { exceptions[GetKey(k.name, k.catalog, k.schema)] = k; } } }
public void Configure(XmlReader reader) { try { XmlDocument cfgdoc = new XmlDocument(); cfgdoc.Load(reader); Validate(cfgdoc); XmlSerializer ser = new XmlSerializer(typeof(db2hbmconf)); this.cfg = ser.Deserialize(XmlReader.Create(new StringReader(cfgdoc.InnerXml))) as db2hbmconf; PrepareServices(); ConfigureMetaStrategies(); RegisterForeignKeyCrawlers(); TableEnumerator.Configuration = cfg; } catch (Exception e) { log.Error("Fatal error during configuration", e); } }