mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	文字错误更正
This commit is contained in:
		@@ -297,7 +297,7 @@ namespace FreeSql.Internal {
 | 
			
		||||
					}
 | 
			
		||||
					var other3Exp = ExpressionLambdaToSqlOther(exp3, _tables, _selectColumnMap, getSelectGroupingMapString, tbtype, isQuoteName);
 | 
			
		||||
					if (string.IsNullOrEmpty(other3Exp) == false) return other3Exp;
 | 
			
		||||
					throw new Exception($"未现实函数表达式 {exp3} 解析");
 | 
			
		||||
					throw new Exception($"未实现函数表达式 {exp3} 解析");
 | 
			
		||||
				case ExpressionType.MemberAccess:
 | 
			
		||||
					var exp4 = exp as MemberExpression;
 | 
			
		||||
					if (exp4.Expression != null && exp4.Expression.Type.IsArray == false && exp4.Expression.Type.IsNullableType()) return ExpressionLambdaToSql(exp4.Expression, _tables, _selectColumnMap, getSelectGroupingMapString, tbtype, isQuoteName);
 | 
			
		||||
@@ -380,7 +380,7 @@ namespace FreeSql.Internal {
 | 
			
		||||
						exp2 = expStack.Pop();
 | 
			
		||||
						switch (exp2.NodeType) {
 | 
			
		||||
							case ExpressionType.Constant:
 | 
			
		||||
								throw new NotImplementedException("未现实 MemberAccess 下的 Constant");
 | 
			
		||||
								throw new NotImplementedException("未实现 MemberAccess 下的 Constant");
 | 
			
		||||
							case ExpressionType.Parameter:
 | 
			
		||||
							case ExpressionType.MemberAccess:
 | 
			
		||||
								
 | 
			
		||||
 
 | 
			
		||||
@@ -25,7 +25,7 @@ namespace FreeSql.Internal.CommonProvider {
 | 
			
		||||
			try { Cache.Remove($"{key1}|{key2}"); } catch { } // redis-cluster 不允许执行 multi keys 命令
 | 
			
		||||
			CacheSupportMultiRemove = Cache.Get(key1) == null && cache.Get(key2) == null;
 | 
			
		||||
			if (CacheSupportMultiRemove == false) {
 | 
			
		||||
				log.LogWarning("FreeSql Warning: 低性能, IDistributedCache 没现实批量删除缓存 Cache.Remove(\"key1|key2\").");
 | 
			
		||||
				log.LogWarning("FreeSql Warning: 低性能, IDistributedCache 没实现批量删除缓存 Cache.Remove(\"key1|key2\").");
 | 
			
		||||
				Remove(key1, key2);
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
@@ -99,7 +99,7 @@ namespace FreeSql.Internal.CommonProvider {
 | 
			
		||||
 | 
			
		||||
		public T Shell<T>(string key, int timeoutSeconds, Func<T> getData) {
 | 
			
		||||
			if (timeoutSeconds <= 0) return getData();
 | 
			
		||||
			if (Cache == null) throw new Exception("缓存现实 IDistributedCache 为 null");
 | 
			
		||||
			if (Cache == null) throw new Exception("缓存实现 IDistributedCache 为 null");
 | 
			
		||||
			var cacheValue = Cache.Get(key);
 | 
			
		||||
			if (cacheValue != null) {
 | 
			
		||||
				try {
 | 
			
		||||
@@ -117,7 +117,7 @@ namespace FreeSql.Internal.CommonProvider {
 | 
			
		||||
 | 
			
		||||
		public T Shell<T>(string key, string field, int timeoutSeconds, Func<T> getData) {
 | 
			
		||||
			if (timeoutSeconds <= 0) return getData();
 | 
			
		||||
			if (Cache == null) throw new Exception("缓存现实 IDistributedCache 为 null");
 | 
			
		||||
			if (Cache == null) throw new Exception("缓存实现 IDistributedCache 为 null");
 | 
			
		||||
			var hashkey = $"{key}:{field}";
 | 
			
		||||
			var cacheValue = Cache.Get(hashkey);
 | 
			
		||||
			if (cacheValue != null) {
 | 
			
		||||
@@ -137,7 +137,7 @@ namespace FreeSql.Internal.CommonProvider {
 | 
			
		||||
 | 
			
		||||
		async public Task<T> ShellAsync<T>(string key, int timeoutSeconds, Func<Task<T>> getDataAsync) {
 | 
			
		||||
			if (timeoutSeconds <= 0) return await getDataAsync();
 | 
			
		||||
			if (Cache == null) throw new Exception("缓存现实 IDistributedCache 为 null");
 | 
			
		||||
			if (Cache == null) throw new Exception("缓存实现 IDistributedCache 为 null");
 | 
			
		||||
			var cacheValue = await Cache.GetAsync(key);
 | 
			
		||||
			if (cacheValue != null) {
 | 
			
		||||
				try {
 | 
			
		||||
@@ -155,7 +155,7 @@ namespace FreeSql.Internal.CommonProvider {
 | 
			
		||||
 | 
			
		||||
		async public Task<T> ShellAsync<T>(string key, string field, int timeoutSeconds, Func<Task<T>> getDataAsync) {
 | 
			
		||||
			if (timeoutSeconds <= 0) return await getDataAsync();
 | 
			
		||||
			if (Cache == null) throw new Exception("缓存现实 IDistributedCache 为 null");
 | 
			
		||||
			if (Cache == null) throw new Exception("缓存实现 IDistributedCache 为 null");
 | 
			
		||||
			var hashkey = $"{key}:{field}";
 | 
			
		||||
			var cacheValue = await Cache.GetAsync(hashkey);
 | 
			
		||||
			if (cacheValue != null) {
 | 
			
		||||
 
 | 
			
		||||
@@ -39,7 +39,7 @@ namespace FreeSql.Internal.CommonProvider {
 | 
			
		||||
						case "InnerJoin": this.InternalJoin(expCall.Arguments[0], SelectTableInfoType.InnerJoin); break;
 | 
			
		||||
						case "RightJoin": this.InternalJoin(expCall.Arguments[0], SelectTableInfoType.RightJoin); break;
 | 
			
		||||
 | 
			
		||||
						default: throw new NotImplementedException($"未现实 {expCall.Method.Name}");
 | 
			
		||||
						default: throw new NotImplementedException($"未实现 {expCall.Method.Name}");
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user