This commit is contained in:
sunkaixuan 2017-09-28 14:20:28 +08:00
parent 0f9b79feb7
commit c6738f2b2a
3 changed files with 0 additions and 18 deletions

View File

@ -53,7 +53,6 @@ namespace SqlSugar
if (_Ado == null)
{
var reval = InstanceFactory.GetAdo(base.CurrentConnectionConfig);
Check.ConnectionConfig(base.CurrentConnectionConfig);
_Ado = reval;
reval.Context = this;
return reval;

View File

@ -12,14 +12,6 @@ namespace SqlSugar
throw new UtilExceptions("SqlSugarException.NotSupportedException" + message);
}
public static void ConnectionConfig(ConnectionConfig config)
{
if (config == null || config.ConnectionString.IsNullOrEmpty() || config.DbType.IsNullOrEmpty())
{
throw new UtilExceptions("SqlSugarException.ArgumentNullException" + ErrorMessage.ConnectionConfigIsNull);
}
}
public static void ArgumentNullException(object checkObj, string message)
{
if (checkObj == null)

View File

@ -6,15 +6,6 @@ namespace SqlSugar
{
internal static partial class ErrorMessage
{
internal static string ConnectionConfigIsNull
{
get
{
return GetThrowMessage("CurrentConnectionConfig and CurrentConnectionConfig attributes can't be null",
"CurrentConnectionConfig和它的属性不能为null。");
}
}
internal static string ObjNotExist
{
get