Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AbpDefaultTenantStoreOptions cannot bind tenant connenctionStrings from appsettings.json, #2495

Closed
fenggaoyao opened this issue Dec 29, 2019 · 0 comments

Comments

@fenggaoyao
Copy link

AbpDefaultTenantStoreOptions fill tenants from appsettings.json,"Id","Name" can work well ,but cannot get ConnectionStrings. “ConnectionStrings” property only has “get” method
If add public ConnectionStrings ConnectionStrings { get; set; } ,it work well
in this “ConnectionStrings” property can add "set" method ?

original code
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.MultiTenancy/Volo/Abp/MultiTenancy/TenantConfiguration.cs
` public class TenantConfiguration
{
public Guid Id { get; set; }

    public string Name { get; set; }

    public ConnectionStrings ConnectionStrings { get; }`

the appsettings.json
"Tenants": [ { "Id": "446a5211-3d72-4339-9adc-845151f8ada0", "Name": "tenant1", "ConnectionStrings": { "Default": "...write tenant1's db connection string here..." } }, { "Id": "25388015-ef1c-4355-9c18-f6b6ddbaf89d", "Name": "tenant2", "ConnectionStrings": { "Default": "...write tenant2's db connection string here..." } }

@hikalkan hikalkan added this to the 2.0 milestone Dec 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants