SqlSugar/Src/Asp.NetCore2/SqlSugar.MongoDbCore/Extensions.cs
2025-06-13 21:00:09 +08:00

23 lines
514 B
C#

using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Text;
namespace SqlSugar.MongoDb
{
public static class Extensions
{
public static bool EqualCase(this string thisValue, string equalValue)
{
if (thisValue != null && equalValue != null)
{
return thisValue.ToLower() == equalValue.ToLower();
}
else
{
return thisValue == equalValue;
}
}
}
}