*增加TDSQLForPGODBC的支持

This commit is contained in:
guoshun.du
2024-09-20 15:52:10 +08:00
parent 05788a10f2
commit dbb1945b03
31 changed files with 5568 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SqlSugar.TDSQLForPGODBC
{
/// <summary>
///Common Extensions for external users
/// </summary>
public static class UtilExtensions
{
public static string ToLower(this string value, bool isLower)
{
if (isLower)
{
return value.ObjToString().ToLower();
}
return value.ObjToString();
}
public static string ToUpper(this string value, bool isAutoToUpper)
{
if (value == null) return null;
if (isAutoToUpper == false) return value;
return value.ToUpper();
}
public static string GetN(this SqlSugarProvider Context)
{
var N = "N";
if (Context.CurrentConnectionConfig.MoreSettings != null && Context.CurrentConnectionConfig.MoreSettings.DisableNvarchar)
{
N = "";
}
return N;
}
}
}