|
@@ -3,6 +3,8 @@ using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq.Dynamic.Core;
|
|
using System.Linq.Dynamic.Core;
|
|
using System.Linq.Expressions;
|
|
using System.Linq.Expressions;
|
|
|
|
+using Hotline.FlowEngine.Workflows;
|
|
|
|
+using Hotline.Orders;
|
|
using Hotline.Users;
|
|
using Hotline.Users;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
@@ -114,8 +116,9 @@ namespace Hotline.Repository.SqlSugar.Extensions
|
|
var dbOptions = configuration.GetSection("DatabaseConfiguration").Get<DatabaseOptions>() ?? new DatabaseOptions();
|
|
var dbOptions = configuration.GetSection("DatabaseConfiguration").Get<DatabaseOptions>() ?? new DatabaseOptions();
|
|
if (dbOptions.ApplyDbMigrations)
|
|
if (dbOptions.ApplyDbMigrations)
|
|
{
|
|
{
|
|
|
|
+ var nonTableTypes = new[] { typeof(OrderExtensionEntity), typeof(StepBasicEntity) };
|
|
var types = typeof(User).Assembly.GetTypes()
|
|
var types = typeof(User).Assembly.GetTypes()
|
|
- .Where(d => d.GetInterfaces().Any(x => x == typeof(ITable)))
|
|
|
|
|
|
+ .Where(d => d.GetInterfaces().Any(x => x == typeof(ITable) && !nonTableTypes.Contains(x)))
|
|
.Distinct()
|
|
.Distinct()
|
|
.ToArray();
|
|
.ToArray();
|
|
|
|
|