mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	拆分 FreeSql 按需引用
This commit is contained in:
		@@ -0,0 +1,11 @@
 | 
			
		||||
public static partial class FreeSqlGlobalExtensions {
 | 
			
		||||
 | 
			
		||||
	/// <summary>
 | 
			
		||||
	/// 特殊处理类似 string.Format 的使用方法,防止注入,以及 IS NULL 转换
 | 
			
		||||
	/// </summary>
 | 
			
		||||
	/// <param name="that"></param>
 | 
			
		||||
	/// <param name="args"></param>
 | 
			
		||||
	/// <returns></returns>
 | 
			
		||||
	public static string FormatPostgreSQL(this string that, params object[] args) => _postgresqlAdo.Addslashes(that, args);
 | 
			
		||||
	static FreeSql.PostgreSQL.PostgreSQLAdo _postgresqlAdo = new FreeSql.PostgreSQL.PostgreSQLAdo();
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user