From be292011717dbce44e40f4b1f08e027ca6d1df2f Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 26 Aug 2017 00:33:57 +0800 Subject: [PATCH] - --- Src/Asp.Net/SqlSugar/Utilities/Check.cs | 3 ++- Src/Asp.Net/SqlSugar/Utilities/IsWhatExtensions.cs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Utilities/Check.cs b/Src/Asp.Net/SqlSugar/Utilities/Check.cs index cdf1c5fd9..3a766d5cb 100644 --- a/Src/Asp.Net/SqlSugar/Utilities/Check.cs +++ b/Src/Asp.Net/SqlSugar/Utilities/Check.cs @@ -19,11 +19,13 @@ namespace SqlSugar throw new UtilExceptions("SqlSugarException.ArgumentNullException:" + ErrorMessage.ConnectionConfigIsNull); } } + public static void ArgumentNullException(object checkObj, string message) { if (checkObj == null) throw new UtilExceptions("SqlSugarException.ArgumentNullException:" + message); } + public static void ArgumentNullException(object [] checkObj, string message) { if (checkObj == null|| checkObj.Length==0) @@ -35,6 +37,5 @@ namespace SqlSugar if (isException) throw new UtilExceptions(string.Format(message, args)); } - } } diff --git a/Src/Asp.Net/SqlSugar/Utilities/IsWhatExtensions.cs b/Src/Asp.Net/SqlSugar/Utilities/IsWhatExtensions.cs index bdf493ab3..96d2d5e79 100644 --- a/Src/Asp.Net/SqlSugar/Utilities/IsWhatExtensions.cs +++ b/Src/Asp.Net/SqlSugar/Utilities/IsWhatExtensions.cs @@ -7,7 +7,6 @@ namespace SqlSugar { internal static class IsWhatExtensions { - public static bool IsInRange(this int thisValue, int begin, int end) { return thisValue >= begin && thisValue <= end;