Skip to content

Finbuckle Multitenancy - Code issue after upgrade #152

@jeanerasmuslife

Description

@jeanerasmuslife

Ask a question

I've upgraded to the latest module, 10.0.2 is the version after upgrading the module in Intent. Ther is now a issue with code in my Infrastructure project in the DependencyInjection.cs file, AddInfrastructure method,

services.AddDbContext<ApplicationDbContext>((sp, options) =>
           {
               var tenantInfo = sp.GetService<ITenantInfo>() ?? throw new Finbuckle.MultiTenant.MultiTenantException("Failed to resolve tenant info.");
               options.UseSqlServer(
                   tenantInfo.ConnectionString,
                   b => b.MigrationsAssembly(typeof(ApplicationDbContext).Assembly.FullName));
               options.UseLazyLoadingProxies();
           });

```gives a compile error:
The type or namespace name 'MultiTenantException' does not exist in the namespace 'Finbuckle.MultiTenant' (are you missing an assembly reference?)

Is there new code that it is not generating correctly?

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions