/// <summary> /// Parse dao factory tag /// </summary> /// <param name="configurationScope">The scope of the configuration</param> /// <param name="daoManager"></param> private void ParseDaoFactory(ConfigurationScope configurationScope, DaoManager daoManager) { Dao dao = null; configurationScope.ErrorContext.MoreInfo = "configure dao"; foreach (XmlNode node in configurationScope.NodeContext.SelectNodes(ApplyNamespacePrefix(XML_DAO), configurationScope.XmlNamespaceManager)) { dao = DaoDeSerializer.Deserialize(node, configurationScope); //(Dao) serializer.Deserialize(new XmlNodeReader(node)); configurationScope.ErrorContext.ObjectId = dao.Implementation; dao.Initialize(daoManager); daoManager.RegisterDao(dao); } configurationScope.ErrorContext.Resource = string.Empty; configurationScope.ErrorContext.MoreInfo = string.Empty; configurationScope.ErrorContext.ObjectId = string.Empty; }
/// <summary> /// Parse dao factory tag /// </summary> /// <param name="configurationScope">The scope of the configuration</param> /// <param name="daoManager"></param> private void ParseDaoFactory(ConfigurationScope configurationScope, DaoManager daoManager) { Dao dao = null; configurationScope.ErrorContext.MoreInfo = "configure dao"; foreach (XmlNode node in configurationScope.NodeContext.SelectNodes(ApplyNamespacePrefix(XML_DAO), configurationScope.XmlNamespaceManager )) { dao = DaoDeSerializer.Deserialize(node, configurationScope); //(Dao) serializer.Deserialize(new XmlNodeReader(node)); configurationScope.ErrorContext.ObjectId = dao.Implementation; dao.Initialize(daoManager); daoManager.RegisterDao(dao); } configurationScope.ErrorContext.Resource = string.Empty; configurationScope.ErrorContext.MoreInfo = string.Empty; configurationScope.ErrorContext.ObjectId = string.Empty; }