Update MySqlConnector

This commit is contained in:
sunkaixuan
2022-12-04 05:12:04 +08:00
parent 57375c5b14
commit a37a945950
9 changed files with 262 additions and 29 deletions

View File

@@ -9,6 +9,22 @@ namespace SqlSugar.MySqlConnector
/// </summary>
public static class UtilExtensions
{
public static bool EqualCase(this string thisValue, string equalValue)
{
if (thisValue != null && equalValue != null)
{
return thisValue.ToLower() == equalValue.ToLower();
}
else
{
return thisValue == equalValue;
}
}
public static string ObjToStringNoTrim(this object thisValue)
{
if (thisValue != null) return thisValue.ToString();
return "";
}
public static int ObjToInt(this object thisValue)
{
int reval = 0;