mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update Custom database
This commit is contained in:
parent
9d3bbdba4b
commit
e1ca66bdc4
@ -484,7 +484,18 @@ namespace SqlSugar
|
||||
{
|
||||
lock (typeCache)
|
||||
{
|
||||
type = assembly.GetType(className);
|
||||
if (string.IsNullOrEmpty(CustomDllName))
|
||||
{
|
||||
type = assembly.GetType(className);
|
||||
}
|
||||
else
|
||||
{
|
||||
type= GetCustomTypeByClass(className);
|
||||
if (type == null)
|
||||
{
|
||||
type = assembly.GetType(className);
|
||||
}
|
||||
}
|
||||
Check.ArgumentNullException(type, string.Format(ErrorMessage.ObjNotExist, className));
|
||||
if (!typeCache.ContainsKey(className))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user