The current implementation of the MongoDb and the Entity Framework storage layer libraries use a custom-made implementation to support multi-tenancy scenarios, although it is based on the MongoFramework provisioning of the support.
We should consider adopting the streamlined approach of using Finbuckle.MultiTenant framework to support the multi-tenant scenarios to generalize even more capabilities.
Although the MongoDB version is using the mentioned Finbuckle.MultiTenant framework, its usage is not really clean, since the need to resolve the tenant in the background.
Expected Benefits
Relying on a mature and widely used library to support the multi-tenant scenarios should relieve the project from the load of a few important tasks, and it would allow users of the libraries to configure the infrastructure just once.
The native and constant support of Finbuckle.MultiTenant for the EntityFramework will also result as a benefit to the project, that will not have to deal with a custom implementation for that storage layer.
Possible Side Effects
Major changes to the MongoDb storage layer will be necessary, and a minor version increase is recommended.
The current implementation of the MongoDb and the Entity Framework storage layer libraries use a custom-made implementation to support multi-tenancy scenarios, although it is based on the MongoFramework provisioning of the support.
We should consider adopting the streamlined approach of using Finbuckle.MultiTenant framework to support the multi-tenant scenarios to generalize even more capabilities.
Although the MongoDB version is using the mentioned Finbuckle.MultiTenant framework, its usage is not really clean, since the need to resolve the tenant in the background.
Expected Benefits
Relying on a mature and widely used library to support the multi-tenant scenarios should relieve the project from the load of a few important tasks, and it would allow users of the libraries to configure the infrastructure just once. The native and constant support of Finbuckle.MultiTenant for the EntityFramework will also result as a benefit to the project, that will not have to deal with a custom implementation for that storage layer.
Possible Side Effects
Major changes to the MongoDb storage layer will be necessary, and a minor version increase is recommended.
Further Reading