This commit is contained in:
sunkaixuan 2017-08-26 00:33:57 +08:00
parent da0a9aa76e
commit be29201171
2 changed files with 2 additions and 2 deletions

View File

@ -19,11 +19,13 @@ namespace SqlSugar
throw new UtilExceptions("SqlSugarException.ArgumentNullException" + ErrorMessage.ConnectionConfigIsNull); throw new UtilExceptions("SqlSugarException.ArgumentNullException" + ErrorMessage.ConnectionConfigIsNull);
} }
} }
public static void ArgumentNullException(object checkObj, string message) public static void ArgumentNullException(object checkObj, string message)
{ {
if (checkObj == null) if (checkObj == null)
throw new UtilExceptions("SqlSugarException.ArgumentNullException" + message); throw new UtilExceptions("SqlSugarException.ArgumentNullException" + message);
} }
public static void ArgumentNullException(object [] checkObj, string message) public static void ArgumentNullException(object [] checkObj, string message)
{ {
if (checkObj == null|| checkObj.Length==0) if (checkObj == null|| checkObj.Length==0)
@ -35,6 +37,5 @@ namespace SqlSugar
if (isException) if (isException)
throw new UtilExceptions(string.Format(message, args)); throw new UtilExceptions(string.Format(message, args));
} }
} }
} }

View File

@ -7,7 +7,6 @@ namespace SqlSugar
{ {
internal static class IsWhatExtensions internal static class IsWhatExtensions
{ {
public static bool IsInRange(this int thisValue, int begin, int end) public static bool IsInRange(this int thisValue, int begin, int end)
{ {
return thisValue >= begin && thisValue <= end; return thisValue >= begin && thisValue <= end;