ok, thanks
Blazor (server) - project was created with suite 6.0.0
i belive there are two bugs that should be fixed:
AddDefaultRepository
on an entity which is part of an context with ReplaceDbContext
prevents this entity from being part of the target contextIReadOnlyRepository
in application services for entities with IMultiTenant
get the host context instead of the tenant context when they do not have a custom repositoryFound the last problem: you need a custom repository, it looks like MultiTenant doesnt work with default genrated repository
With custom repository and multi-tenant, all entities are on the same context, finally.
Found one problem: options.AddDefaultRepository<TEntity>
prevents ReplaceDbContext
to work
But ExampleEntity still in host context and user in tenant context
im not sure what you mean.
So how do i get both entities in the same context ? I thought that is the purpose of ReplaceDbContext ( tried to add IMultiTenant to exampleEntity, but same result )
updated to 6.0.0 -> same result
here is an example project, tried to be as close as possible to our project / structure. ( removed test projects, removed apb commercial from nuget config )