``cs
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IConnectionStringResolver), typeof(
))]
public class SWMultiTenantConnectionStringResolver :
hi
Can you copy the code of `
hi
Can you check the `
I have checked
Hi Ma
Can you provide a sample code to acheive this using
There is a very wierd behaviour with the
ExposeServices(typeof(IConnectionStringResolver))]
public class MyMultiTenantConnectionStringResolver :
The 'connectionstringname' that is being used by the
ExposeServices(typeof(IConnectionStringResolver))]
public class MyMultiTenantConnectionStringResolver :
ExposeServices(typeof(IConnectionStringResolver))]
public class SWMultiTenantConnectionStringResolver :
example:
```csharp
[Dependency(ReplaceServices = true)]
public class MyConnectionStringResolver :
methods, try:
```csharp
[Dependency(ReplaceServices = true)]
public class MyConnectionStringResolver :
[Dependency(ReplaceServices = true)]
public class TFORMMultiTenantConnectionStringResolver :
But `
IConnectionStringResolver), typeof(DefaultConnectionStringResolver))]
public class MicroServiceConnectionStringResolver :
But `
), typeof(DefaultConnectionStringResolver))]
> public class MicroServiceConnectionStringResolver :
I used a custom resolver that is a copy of the original '
hi
Can you try to override the default `
I was override
public class
ICurrentTenant _currentTenant;
private readonly IServiceProvider _serviceProvider;
public
Yeah, after check
hi
You can override the `
> [maliming] said:
> hi
>
> You can override the `
Hi
You can override **
Problems-configuring-a-separate-database-for-each-tenant-in-a-microservices-application
If your template is not micro-service, you can customize `
IConnectionStringResolver), typeof(DefaultConnectionStringResolver))]
public class MicroServiceConnectionStringResolver :
Problems-configuring-a-separate-database-for-each-tenant-in-a-microservices-application
If your template is not micro-service, you can customize `
IConnectionStringResolver), typeof(DefaultConnectionStringResolver))]
public class MicroServiceConnectionStringResolver :
You have to program to implement it, because the default `
AbpIdentityServer_>"
If you don't want to use `Database Connection Strings`
You can override and replace the `
> If you don't want to use `Database Connection Strings`
>
> You can override and replace the `
options =>
{
options.IsEnabled = MultiTenancyConsts.IsEnabled;
});
```
and
we Replace Services
CMVPoint.IdentityService.MongoDb;
[Dependency(ReplaceServices = true)]
public class MyMultiTenantConnectionStringResolver :
>
> [Dependency(ReplaceServices = true)]
> public class MyMultiTenantConnectionStringResolver :
So you can custom the `DefaultConnectionStringResolver` or `
```csharp
[Dependency(ReplaceServices = true)]
public class MyMultiTenantConnectionStringResolver:
}
```
```csharp
[Dependency(ReplaceServices = true)]
public class CustomConnectionStringResolver :
hi
`[ExposeServices(typeof(
support.abp.io/QA/Questions/4703/Question-on-separate-databases-per-tenant
...we are attempting to override [
Volo.Abp.MultiTenancy;
namespace FM.nVision.Saas;
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(
))]
public class MyMultiTenantConnectionStringResolver :
```csharp
[Dependency(ReplaceServices = true)]
public class MyMultiTenantConnectionStringResolver:
the tenant connection strings to the database without a user name and password
We then overrode the
problem we are having is that at certain point, when logging into a tenant, the method below in our
Task UpdateConnectionStringsAsync(Guid id, SaasTenantConnectionStringsDto input);
//...
}
```
[
Filter=
I know that I have to override `DefaultConnectionStringResolver` and `