/// <summary> /// 设置存储配置 /// </summary> public StoreFactory SetConfig(StoreConfig config) { //设置Config _StoreConfigDic[config.DataType] = config; //移除存储缓存(下次获取时会再创建) _StoreDic.Remove(config.DataType); return(this); }
/// <summary> /// 获取默认存储配置 /// </summary> private StoreConfig GetDftConfig(Type dataType) { //默认为存储在数据库 var config = new StoreConfig(dataType, StoreShape.Dic, new List <StoreConfigItem>() { new StoreConfigItem(StoreType.DBStore) }); return(config); }