mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-17 10:41:56 +08:00
-
This commit is contained in:
parent
0f9b79feb7
commit
c6738f2b2a
@ -53,7 +53,6 @@ namespace SqlSugar
|
|||||||
if (_Ado == null)
|
if (_Ado == null)
|
||||||
{
|
{
|
||||||
var reval = InstanceFactory.GetAdo(base.CurrentConnectionConfig);
|
var reval = InstanceFactory.GetAdo(base.CurrentConnectionConfig);
|
||||||
Check.ConnectionConfig(base.CurrentConnectionConfig);
|
|
||||||
_Ado = reval;
|
_Ado = reval;
|
||||||
reval.Context = this;
|
reval.Context = this;
|
||||||
return reval;
|
return reval;
|
||||||
|
@ -12,14 +12,6 @@ namespace SqlSugar
|
|||||||
throw new UtilExceptions("SqlSugarException.NotSupportedException:" + message);
|
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)
|
public static void ArgumentNullException(object checkObj, string message)
|
||||||
{
|
{
|
||||||
if (checkObj == null)
|
if (checkObj == null)
|
||||||
|
@ -6,15 +6,6 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
internal static partial class ErrorMessage
|
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
|
internal static string ObjNotExist
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
Loading…
Reference in New Issue
Block a user