I noticed that more and more features have been added each time the version updated, which is very good, but it is hard to find out the instruction for these new features. For example, Twilio sms integration was added on v6.4. I am interested of it, but wonder how it is implemented on Zero and how to use this feature on my applications. Can you shine me a light? Thanks.
I am a little confused. While I create a new tenant with a dedicated connectionstring (different wtih the "default" connectionstring), it automatically adds tables in that dedicated database. I guess a corresponding "TenantDbContext" must be created automatically. Doesn't it?
You memtioned "Multi tenancy data retrieval is achieved using data filter". Is it still true to "Multi tenancy with seprated dedicated database"?
For example, I know an user's tenant-id and user-id, how do I inject a IRepository<UserRole, long> userRoleRepository to retrieve UserRole info for different tenants' user, if tenants using seprated dedicated database?
My "HostDbContext" is configured by the "default" connectionstring, so I can add an entity on to the "HostDbContext", and the corresponding database table is created on the "default" database after migration.
Now, I want to do same thing to add a similar table on "tenant" database. How do I do?
Thanks,
That is my question. I didn't modify any API code. Why does it call http://localhost:4200/undefined/api/TokenAuth? What is it suppostly? Is it a bug of ANZ v6.2.1? Can you reproduce this error on your side?
Yes. The above WARNs was from the log.txt in public project.
I checked the log.txt in web.host project, but there is no "ERROR" during that peroid of time.
Oh, I missed it. Just restored packages on Dependencies/Bower. The page style looks good now. BUT, while logout from the public page, I get a popup with "InternalServerError". After I click "Ok" on that popup, the page directs to Localhost:4200 with blank page. I checked the log.txt, there are two "WARN":
WARN 2018-11-08 15:42:47,803 [19 ] naries.DictionaryBasedLocalizationSource - Can not find 'Left' in localization source 'MyProject'! WARN 2018-11-08 15:42:47,803 [19 ] naries.DictionaryBasedLocalizationSource - Can not find 'Right' in localization source 'MyProject'!
Thank you for direction. I installed it and updated Bundles exactly as your above picture. However, it still runs with error:
Yes. As I said above, I tried with another existing DB ( an SQL Server instance rather than local db). It connected and created a new tenant with that dedicated database. BUT, I wonder how do I use that tanent's database to add a new DbContext? For example, I need to add an entity, and want the table created on that tenant's database. Do you have an instruction or a code example to explain how to do it?
In the "Step by Step Development" guide, the "DbSet<Person> Persons" is added in Host DbContext (i.e. PhoneBookDemoDbContext). How do I create a TenantDbContext? I want the tenant dedicated database to store the "Persons" table.
The only way for me to run "Migrator" is to set Migrator as startup project in VS and run (F5) it. The console pops up with similar messages as showed in the development-guide. However, I still has no clue how to use that tanent's database to add a new dedicated DbContext. Isn't it possible? Can you advise?
Just tried. No luck.