Skip to content

后台任务中IEventBus操作的数据怎么才能提交到数据库中去 #745

@Await-d

Description

@Await-d

Description

image
image
image
数据提交再下图
image
image
我的Repository是继承的Masa.BuildingBlocks.Ddd.Domain.Repositories官方IRepository
不管是通过IServiceProvider手动创建获取的还是通过构造出来的Repository的服务都无法提交到数据库中去,
我只知道是我的问题是来自当前请求的生命周期,我的后台服务是没有来自请求的生命周期,所以一直没有把数据提交到数据库中去

如果是通过接口调用的接口,就不会出现这个问题。如果是我手动提交的话 就不会出现这个问题 如图
image
我想除了我自己手写并提交的方式外,应该怎么才能正确触发数据的正常提交了

.NET version

net8

MASA Framework version

1.2.0-preview.5

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions