mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-22 19:43:07 +08:00
合并代码
This commit is contained in:
@@ -67,7 +67,7 @@ public class Startup : AppStartup
|
||||
|
||||
}
|
||||
|
||||
public void Use(IApplicationBuilder applicationBuilder)
|
||||
public void Use(IServiceProvider serviceProvider)
|
||||
{
|
||||
//检查ConfigId
|
||||
var configIdGroup = DbContext.DbConfigs.GroupBy(it => it.ConfigId);
|
||||
|
@@ -14,6 +14,7 @@
|
||||
"ThingsGateway.SqlSugar",
|
||||
"ThingsGateway.Admin.Application",
|
||||
"ThingsGateway.Admin.Razor",
|
||||
"ThingsGateway.DB",
|
||||
"ThingsGateway.Razor"
|
||||
]
|
||||
},
|
||||
|
@@ -14,6 +14,7 @@
|
||||
"ThingsGateway.SqlSugar",
|
||||
"ThingsGateway.Admin.Application",
|
||||
"ThingsGateway.Admin.Razor",
|
||||
"ThingsGateway.DB",
|
||||
"ThingsGateway.Razor"
|
||||
]
|
||||
},
|
||||
|
@@ -40,6 +40,7 @@ public class SingleFilePublish : ISingleFilePublish
|
||||
"ThingsGateway.NewLife.X",
|
||||
"ThingsGateway.Razor",
|
||||
"ThingsGateway.Admin.Razor" ,
|
||||
"ThingsGateway.DB",
|
||||
"ThingsGateway.Admin.Application",
|
||||
"ThingsGateway.SqlSugar",
|
||||
];
|
||||
|
@@ -48,11 +48,11 @@ public class Startup : AppStartup
|
||||
});
|
||||
|
||||
|
||||
// 事件总线
|
||||
services.AddEventBus(options =>
|
||||
{
|
||||
//// 事件总线
|
||||
//services.AddEventBus(options =>
|
||||
//{
|
||||
|
||||
});
|
||||
//});
|
||||
|
||||
// 任务调度
|
||||
services.AddSchedule(options =>
|
||||
@@ -151,8 +151,6 @@ public class Startup : AppStartup
|
||||
});
|
||||
|
||||
|
||||
services.AddHealthChecks();
|
||||
|
||||
|
||||
#region 控制台美化
|
||||
|
||||
|
@@ -66,7 +66,8 @@ public static class CodeFirstUtils
|
||||
{
|
||||
// 按主键进行批量增加和更新
|
||||
var storage = db.StorageableByObject(seedData.ToList()).ToStorage();
|
||||
if (ignoreAdd == null) storage.AsInsertable.ExecuteCommand();//执行插入
|
||||
if (ignoreAdd == null)
|
||||
storage.AsInsertable.ExecuteCommand();//执行插入
|
||||
if (ignoreUpdate == null && config.IsUpdateSeedData) storage.AsUpdateable.ExecuteCommand();//只有没有忽略更新的特性才执行更新
|
||||
}
|
||||
else// 没有主键或者不是预定义的主键(有重复的可能)
|
||||
|
@@ -32,11 +32,10 @@ public class Startup : AppStartup
|
||||
|
||||
StaticConfig.EnableAllWhereIF = true;
|
||||
|
||||
services.AddSingleton<ISugarAopService, SugarAopService>();
|
||||
|
||||
}
|
||||
|
||||
public void Use(IApplicationBuilder applicationBuilder)
|
||||
public void Use(IServiceProvider serviceProvider)
|
||||
{
|
||||
|
||||
|
||||
|
@@ -67,13 +67,13 @@ internal static class Penetrates
|
||||
["patch"] = "PATCH"
|
||||
};
|
||||
|
||||
IsApiControllerCached = new ConcurrentDictionary<Type, bool>();
|
||||
//IsApiControllerCached = new ConcurrentDictionary<Type, bool>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <see cref="IsApiController(Type)"/> 缓存集合
|
||||
/// </summary>
|
||||
private static readonly ConcurrentDictionary<Type, bool> IsApiControllerCached;
|
||||
///// <summary>
|
||||
///// <see cref="IsApiController(Type)"/> 缓存集合
|
||||
///// </summary>
|
||||
//private static readonly ConcurrentDictionary<Type, bool> IsApiControllerCached;
|
||||
|
||||
/// <summary>
|
||||
/// 是否是Api控制器
|
||||
@@ -82,8 +82,8 @@ internal static class Penetrates
|
||||
/// <returns></returns>
|
||||
internal static bool IsApiController(Type type)
|
||||
{
|
||||
return IsApiControllerCached.GetOrAdd(type, Function);
|
||||
|
||||
//return IsApiControllerCached.GetOrAdd(type, Function);
|
||||
return Function(type);
|
||||
// 本地静态方法
|
||||
static bool Function(Type type)
|
||||
{
|
||||
|
@@ -59,7 +59,7 @@ public class Startup : AppStartup
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public void Use(IApplicationBuilder applicationBuilder)
|
||||
public void Use(IServiceProvider serviceProvider)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -117,7 +117,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
internal static class ReflectionInoHelper
|
||||
public static class ReflectionInoHelper
|
||||
{
|
||||
private static List<Action> removeActions = new List<Action>();
|
||||
internal static void AddRemoveFunc(Action removeAction)
|
||||
|
@@ -9,10 +9,6 @@ using ThingsGateway.Blazor.Diagrams.Core.Layers;
|
||||
using ThingsGateway.Blazor.Diagrams.Core.Models.Base;
|
||||
using ThingsGateway.Blazor.Diagrams.Core.Options;
|
||||
|
||||
[assembly: InternalsVisibleTo("ThingsGateway.Blazor.Diagrams")]
|
||||
[assembly: InternalsVisibleTo("ThingsGateway.Blazor.Diagrams.Tests")]
|
||||
[assembly: InternalsVisibleTo("ThingsGateway.Blazor.Diagrams.Core.Tests")]
|
||||
|
||||
namespace ThingsGateway.Blazor.Diagrams.Core;
|
||||
|
||||
public abstract class Diagram
|
@@ -8,7 +8,4 @@
|
||||
// QQ群:605534569
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
global using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
global using ThingsGateway.Admin.Application;
|
||||
global using ThingsGateway.Foundation;
|
1
src/Gateway/ThingsGateway.Blazor.Diagrams.Core/README.md
Normal file
1
src/Gateway/ThingsGateway.Blazor.Diagrams.Core/README.md
Normal file
@@ -0,0 +1 @@
|
||||
https://github.com/Blazor-Diagrams/Blazor.Diagrams
|
@@ -0,0 +1 @@
|
||||
代码来自 https://github.com/Blazor-Diagrams/Blazor.Diagrams
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user