Skip to content

Commit a86a995

Browse files
committed
6.5.4
1 parent aec2162 commit a86a995

File tree

6 files changed

+42
-3
lines changed

6 files changed

+42
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## v6.x.x
44

5+
##6.5.4(2024-1-19)
6+
* **修改:** 修复工作流在Oracle中不能正常启动的问题
7+
* **修改:** 修复_workflowapi/GetMyApprove方法
8+
* **修改:** 修复LayUI模式下checkbox不能禁用的问题
9+
10+
511
##6.5.1(2023-11-19)
612
* **修改:** 修复GetSelectItemList方法的bug
713
* **修改:** 修复LayUI Tab页中使用按钮组会导致Tab页切换失效的问题

demo/WalkingTec.Mvvm.Demo/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"Connections": [
2626
{
2727
"Key": "default",
28-
"Value": "Server=(localdb)\\mssqllocaldb;Database=next;Trusted_Connection=True;MultipleActiveResultSets=true",
28+
"Value": "Server=(localdb)\\mssqllocaldb;Database=nextdd;Trusted_Connection=True;MultipleActiveResultSets=true",
2929
"DBType": "sqlserver"
3030
}
3131

src/WalkingTec.Mvvm.Core/DataContext.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,11 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
590590
if (DBType == DBTypeEnum.Oracle)
591591
{
592592
modelBuilder.Model.SetMaxIdentifierLength(30);
593+
modelBuilder.Entity<Elsa_Bookmark>().ToTable("Bookmarks");
594+
modelBuilder.Entity<Elsa_Trigger>().ToTable("Triggers");
595+
modelBuilder.Entity<Elsa_WorkflowDefinition>().ToTable("WorkflowDefinitions");
596+
modelBuilder.Entity<Elsa_WorkflowExecutionLogRecord>().ToTable("WorkflowExecutionLogRecords");
597+
modelBuilder.Entity<Elsa_WorkflowInstance>().ToTable("WorkflowInstances");
593598
}
594599
}
595600

src/WalkingTec.Mvvm.Mvc/Helper/FrameworkServiceExtension.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
using System.Threading.Tasks;
6161
using Elsa.Activities.Http;
6262
using Elsa.Activities.Http.Services;
63+
using Elsa.Persistence.EntityFramework.Core;
6364

6465
namespace WalkingTec.Mvvm.Mvc
6566
{
@@ -597,7 +598,7 @@ public static IServiceCollection AddWtmWorkflow(this IServiceCollection services
597598
elsa.UseNonPooledEntityFrameworkPersistence(ef => ef.UseSqlite(cs.Value));
598599
break;
599600
case DBTypeEnum.Oracle:
600-
elsa.UseNonPooledEntityFrameworkPersistence(ef => ef.UseOracle(cs.Value));
601+
elsa.UseNonPooledEntityFrameworkPersistence<WtmElsaContext>(ef => ef.UseOracle(cs.Value,op=>op.UseOracleSQLCompatibility(cs.Version??"11")));
601602
break;
602603
case DBTypeEnum.DaMeng:
603604
break;
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using Elsa.Persistence.EntityFramework.Core;
2+
using Microsoft.EntityFrameworkCore;
3+
4+
namespace WalkingTec.Mvvm.Mvc.Helper
5+
{
6+
public class WtmElsaContext : ElsaContext
7+
{
8+
public WtmElsaContext(DbContextOptions options) : base(options)
9+
{
10+
}
11+
12+
public override string Schema
13+
{
14+
get
15+
{
16+
if (Database.IsOracle())
17+
{
18+
return null;
19+
}
20+
else
21+
{
22+
return base.Schema;
23+
}
24+
}
25+
}
26+
}
27+
}

version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionPrefix>6.5.3</VersionPrefix>
3+
<VersionPrefix>6.5.4</VersionPrefix>
44
</PropertyGroup>
55

66
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

0 commit comments

Comments
 (0)