mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
*增加TDSQLForPGODBC的支持
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user