mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 01:05:27 +08:00 
			
		
		
		
	增加虚谷支持,基础版本
This commit is contained in:
		
							
								
								
									
										20
									
								
								Providers/FreeSql.Provider.Xugu/XuguExtensions.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								Providers/FreeSql.Provider.Xugu/XuguExtensions.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
using FreeSql;
 | 
			
		||||
using FreeSql.Xugu.Curd;
 | 
			
		||||
using System.Data;
 | 
			
		||||
using System.Linq.Expressions;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using XuguClient;
 | 
			
		||||
 | 
			
		||||
public static partial class FreeSqlXuguGlobalExtensions
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// 特殊处理类似 string.Format 的使用方法,防止注入,以及 IS NULL 转换
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    /// <param name="that"></param>
 | 
			
		||||
    /// <param name="args"></param>
 | 
			
		||||
    /// <returns></returns>
 | 
			
		||||
    public static string FormatXuguSQL(this string that, params object[] args) => _xgsqlAdo.Addslashes(that, args);
 | 
			
		||||
    static FreeSql.Xugu.XuguAdo _xgsqlAdo = new FreeSql.Xugu.XuguAdo();
 | 
			
		||||
     
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user