mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 16:50:41 +08:00
-
This commit is contained in:
parent
0f9b79feb7
commit
c6738f2b2a
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user