Thanks a lot.
And also can you give some light on:
We see there is option to "Apply Database Migrations" in Saas module but it does not seem to work? How to enable or implement this feature?
We have solution that contains multiple microservices. One of them contains host entities and data others are tenant specific entity and services. We haave DbMigrator console app in our host project only. Now we are able to run DbMigrator as console app in development and migrate host and tenant database that is:
How to run this DbMigrator in a Production server. Can we control DbMigrator to migrate all the databases we need to migrate? We see there is option to "Apply Database Migrations" in Saas module but it does not seem to work. What sort of implementation it requires?
Hi @albert,
Thanks for the response.
How can we add these Bank Entities to a global database or shared database.
- if you don't inherit from IMultiTenant interface then the entity will be a shared entity across the tenants.
By this you mean if Banks are defined for one Tenant then other Tenants will get access to Banks too? Don't we need to add these Bank Entites to Host database? Or Can we keep them in Tenant database?
We are working on an Application where each Tenant will share some common data say: Bank Information. Previously, We kept that bank information (All the bank related tables ) in Tenant Scope. Now we want to move the Bank information to a global database where each tenant can access it. Our current approach is 'Database per tenant'
**For Example: ** I have Tennat_1 and it is mapped with Some banks (say ABC, XYZ) Now If we create Tenant_2, we should be able to map these Banks to this new Tenant and other Tenant(s). So on Login, each Tenant will acess their own mapped Bank.
We also wanna manage this Bank data at global level where Tenant is managed.
How can we add these Bank Entities to a global database or shared database.
If added, then how Tenant will access it? Do we need to extend the code in order to acess Global Bank Enitites? ( We seemlessly wants to access these Bank entites, like CurrentUser and CurrentTenant)
How can we implement Domain service for Bank Information like IdentityManager
Please suggest suitable Database Architecture and approach.
Kindly provide the solution as soon as possible.** Also, Let us know if we can get support via calls or online meetings.**
Thanks!
Thanks @maliming
The issue has been resolved with given solution.
Hi,
We are getting following error while running/debugging the unit test cases.
Volo.Abp.AbpInitializationException : An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module SCV.Litmus.InvoiceManagement.InvoiceManagementTestBaseModule, SCV.Litmus.InvoiceManagement.TestBase, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null: SQLite Error 1: 'no such table: AbpSettings'.. See the inner exception for details. ---- Microsoft.Data.Sqlite.SqliteException : SQLite Error 1: 'no such table: AbpSettings'.
This error is being thrown from the OnApplicationInitialization(...) while we call SeedTestData(context) of TestBaseModule class. Please find attached snapshot-
Before this, we were getting error The active test run was aborted. Reason: Test host process crashed
see issue
So we added "AbpLicenseCode" in Test project's appsetting.config, then the above error started to come.
Note: Its a bloacker for our project and we can not give you minimal project to reproduce the issue. So let us know if we can connect through Zoom.
We have changed version from v3.0.4 to v4.3.1, please help me for resolve this issue. what i am missing.
Hi @enisn
The project is very large and could not be send over mail. It would be really great to have an online session where I can show you the code. Please can you guide my how can I get assisted with abp support team, where I can show my code?
Hi @enisn,
Thanks for the quick response.
We are using integration tests as in https://docs.abp.io/en/abp/latest/Testing#integration-tests So there are methods where we are calling a CustomAPIService that makes http call to a 3rd party API and would like to Substitute/Mock those calls. In this configuration if I mock the Repositories, I get SQLite Error 19: 'FOREIGN KEY constraint failed'.. Can't we mix NSubstitute with Integration Tests?
I request you to have an online session so that I can walk you through the code structure in better way. Becuase its a bit hard to give example as some of AppService contains around 30 dependencies
It will be really helpful. Thanks in Advance!
Hi, This is urgent. We are facing some issue in mocking repositories using NSubstitute.
Can we connect through online session. Please help as soon as possible.