public object Create(object parent, object configContext, XmlNode section) { var config = new DapperRepositoryConfig(); var startupNode = section.SelectSingleNode("CurrentActivedDbType"); config.ActivedDbTypeName = GetString(startupNode, "ActivedDbTypeName"); var redisCachingNode = section.SelectSingleNode("RedisCaching"); config.RedisCachingConnectionString = GetString(redisCachingNode, "ConnectionString"); return(config); }
public object Create(object parent, object configContext, XmlNode section) { var config = new DapperRepositoryConfig(); var dbTypeNode = section.SelectSingleNode("CurrentDbTypeName"); config.CurrentDbTypeName = GetString(dbTypeNode, "CurrentDbTypeName"); var redisCachingNode = section.SelectSingleNode("RedisCaching"); config.RedisEnabled = GetBool(redisCachingNode, "Enabled"); config.RedisCachingConnectionString = GetString(redisCachingNode, "ConnectionString"); return(config); }