mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-30 22:10:22 +08:00
Update Custom database
This commit is contained in:
parent
9d3bbdba4b
commit
e1ca66bdc4
@ -484,7 +484,18 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
lock (typeCache)
|
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));
|
Check.ArgumentNullException(type, string.Format(ErrorMessage.ObjNotExist, className));
|
||||||
if (!typeCache.ContainsKey(className))
|
if (!typeCache.ContainsKey(className))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user