Fix EF Core persistence provider for workflow definition channel property

This commit is contained in:
Sipke Schoorstra 2021-06-29 21:05:05 +02:00
parent afeda9dba0
commit b0f3d68b35
2 changed files with 1 additions and 3 deletions

View file

@ -13,6 +13,7 @@ namespace Elsa.Persistence.EntityFramework.Core.Configuration
builder.Ignore(x => x.Variables);
builder.Ignore(x => x.CustomAttributes);
builder.Ignore(x => x.ContextOptions);
builder.Ignore(x => x.Channel);
builder.Property<string>("Data");
builder.HasIndex(x => new {x.DefinitionId, x.Version}).HasDatabaseName($"IX_{nameof(WorkflowDefinition)}_{nameof(WorkflowDefinition.DefinitionId)}_{nameof(WorkflowDefinition.VersionId)}").IsUnique();
builder.HasIndex(x => x.TenantId).HasDatabaseName($"IX_{nameof(WorkflowDefinition)}_{nameof(WorkflowDefinition.TenantId)}");

View file

@ -29,7 +29,6 @@ namespace Elsa.Persistence.EntityFramework.Core.Stores
entity.Variables,
entity.ContextOptions,
entity.CustomAttributes,
entity.Tag,
entity.Channel
};
@ -46,7 +45,6 @@ namespace Elsa.Persistence.EntityFramework.Core.Stores
entity.Variables,
entity.ContextOptions,
entity.CustomAttributes,
entity.Tag,
entity.Channel
};
@ -58,7 +56,6 @@ namespace Elsa.Persistence.EntityFramework.Core.Stores
entity.Variables = data.Variables;
entity.ContextOptions = data.ContextOptions;
entity.CustomAttributes = data.CustomAttributes;
entity.Tag = data.Tag;
entity.Channel = data.Channel;
}
}