Skip to content

Commit

Permalink
6.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliang-wt committed Jan 18, 2024
1 parent aec2162 commit a86a995
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## v6.x.x

##6.5.4(2024-1-19)
* **修改:** 修复工作流在Oracle中不能正常启动的问题
* **修改:** 修复_workflowapi/GetMyApprove方法
* **修改:** 修复LayUI模式下checkbox不能禁用的问题


##6.5.1(2023-11-19)
* **修改:** 修复GetSelectItemList方法的bug
* **修改:** 修复LayUI Tab页中使用按钮组会导致Tab页切换失效的问题
Expand Down
2 changes: 1 addition & 1 deletion demo/WalkingTec.Mvvm.Demo/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"Connections": [
{
"Key": "default",
"Value": "Server=(localdb)\\mssqllocaldb;Database=next;Trusted_Connection=True;MultipleActiveResultSets=true",
"Value": "Server=(localdb)\\mssqllocaldb;Database=nextdd;Trusted_Connection=True;MultipleActiveResultSets=true",
"DBType": "sqlserver"
}

Expand Down
5 changes: 5 additions & 0 deletions src/WalkingTec.Mvvm.Core/DataContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,11 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
if (DBType == DBTypeEnum.Oracle)
{
modelBuilder.Model.SetMaxIdentifierLength(30);
modelBuilder.Entity<Elsa_Bookmark>().ToTable("Bookmarks");
modelBuilder.Entity<Elsa_Trigger>().ToTable("Triggers");
modelBuilder.Entity<Elsa_WorkflowDefinition>().ToTable("WorkflowDefinitions");
modelBuilder.Entity<Elsa_WorkflowExecutionLogRecord>().ToTable("WorkflowExecutionLogRecords");
modelBuilder.Entity<Elsa_WorkflowInstance>().ToTable("WorkflowInstances");
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/WalkingTec.Mvvm.Mvc/Helper/FrameworkServiceExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
using System.Threading.Tasks;
using Elsa.Activities.Http;
using Elsa.Activities.Http.Services;
using Elsa.Persistence.EntityFramework.Core;

namespace WalkingTec.Mvvm.Mvc
{
Expand Down Expand Up @@ -597,7 +598,7 @@ public static IServiceCollection AddWtmWorkflow(this IServiceCollection services
elsa.UseNonPooledEntityFrameworkPersistence(ef => ef.UseSqlite(cs.Value));
break;
case DBTypeEnum.Oracle:
elsa.UseNonPooledEntityFrameworkPersistence(ef => ef.UseOracle(cs.Value));
elsa.UseNonPooledEntityFrameworkPersistence<WtmElsaContext>(ef => ef.UseOracle(cs.Value,op=>op.UseOracleSQLCompatibility(cs.Version??"11")));
break;
case DBTypeEnum.DaMeng:
break;
Expand Down
27 changes: 27 additions & 0 deletions src/WalkingTec.Mvvm.Mvc/Helper/WtmElsaContext.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using Elsa.Persistence.EntityFramework.Core;
using Microsoft.EntityFrameworkCore;

namespace WalkingTec.Mvvm.Mvc.Helper
{
public class WtmElsaContext : ElsaContext
{
public WtmElsaContext(DbContextOptions options) : base(options)
{
}

public override string Schema
{
get
{
if (Database.IsOracle())
{
return null;
}
else
{
return base.Schema;
}
}
}
}
}
2 changes: 1 addition & 1 deletion version.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>6.5.3</VersionPrefix>
<VersionPrefix>6.5.4</VersionPrefix>
</PropertyGroup>

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

0 comments on commit a86a995

Please sign in to comment.