mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update Access bug
This commit is contained in:
parent
d19717ace5
commit
fdc1f3ba87
@ -403,7 +403,7 @@ namespace SqlSugar
|
|||||||
private static Restult GetCacheInstance<Restult>(string className, Type[] types)
|
private static Restult GetCacheInstance<Restult>(string className, Type[] types)
|
||||||
{
|
{
|
||||||
var cacheKey = className + string.Join(",", types.Select(it => it.FullName));
|
var cacheKey = className + string.Join(",", types.Select(it => it.FullName));
|
||||||
Type type;
|
Type type=null;
|
||||||
if (typeCache.ContainsKey(cacheKey))
|
if (typeCache.ContainsKey(cacheKey))
|
||||||
{
|
{
|
||||||
type = typeCache[cacheKey];
|
type = typeCache[cacheKey];
|
||||||
@ -418,7 +418,11 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
type = GetCustomTypeByClass(className + "`" + types.Length).MakeGenericType(types);
|
var custom = GetCustomTypeByClass(className + "`" + types.Length);
|
||||||
|
if (custom != null)
|
||||||
|
{
|
||||||
|
type = custom.MakeGenericType(types);
|
||||||
|
}
|
||||||
if (type == null)
|
if (type == null)
|
||||||
{
|
{
|
||||||
type = Type.GetType(className + "`" + types.Length, true).MakeGenericType(types);
|
type = Type.GetType(className + "`" + types.Length, true).MakeGenericType(types);
|
||||||
@ -444,7 +448,11 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
type = GetCustomTypeByClass(className + "`" + types.Length).MakeGenericType(types);
|
var custom = GetCustomTypeByClass(className + "`" + types.Length);
|
||||||
|
if (custom != null)
|
||||||
|
{
|
||||||
|
type = custom.MakeGenericType(types);
|
||||||
|
}
|
||||||
if (type == null)
|
if (type == null)
|
||||||
{
|
{
|
||||||
type = Type.GetType(className + "`" + types.Length, true).MakeGenericType(types);
|
type = Type.GetType(className + "`" + types.Length, true).MakeGenericType(types);
|
||||||
|
Loading…
Reference in New Issue
Block a user