diff --git a/SqlSugar/Common/IsWhatExtensions.cs b/SqlSugar/Common/IsWhatExtensions.cs
index 249df3163..5e3a1b3b0 100644
--- a/SqlSugar/Common/IsWhatExtensions.cs
+++ b/SqlSugar/Common/IsWhatExtensions.cs
@@ -7,141 +7,80 @@ namespace SqlSugar
{
internal static class IsWhatExtensions
{
- ///
- /// 值在的范围?
- ///
- ///
- /// 大于等于begin
- /// 小于等于end
- ///
+
public static bool IsInRange(this int thisValue, int begin, int end)
{
return thisValue >= begin && thisValue <= end;
}
- ///
- /// 值在的范围?
- ///
- ///
- /// 大于等于begin
- /// 小于等于end
- ///
+
public static bool IsInRange(this DateTime thisValue, DateTime begin, DateTime end)
{
return thisValue >= begin && thisValue <= end;
}
- ///
- /// 在里面吗?
- ///
- ///
- ///
- ///
- ///
public static bool IsIn(this T thisValue, params T[] values)
{
return values.Contains(thisValue);
}
- ///
- /// 在里面吗?
- ///
- ///
- ///
- ///
public static bool IsContainsIn(this string thisValue, params string[] inValues)
{
return inValues.Any(it => thisValue.Contains(it));
}
- ///
- /// 是null或""?
- ///
- ///
public static bool IsNullOrEmpty(this object thisValue)
{
if (thisValue == null || thisValue == DBNull.Value) return true;
return thisValue.ToString() == "";
}
- ///
- /// 是null或""?
- ///
- ///
+
public static bool IsNullOrEmpty(this Guid? thisValue)
{
if (thisValue == null) return true;
return thisValue == Guid.Empty;
}
- ///
- /// 是null或""?
- ///
- ///
+
public static bool IsNullOrEmpty(this Guid thisValue)
{
if (thisValue == null) return true;
return thisValue == Guid.Empty;
}
- ///
- /// 是null或""?
- ///
- ///
public static bool IsNullOrEmpty(this IEnumerable