0
votes

I have been looking for a solution to multi-tenancy around EF. I want to use a single table and single schema (Row Isolation with a TenantID on all tables).

I don't really want to wrap EF (as suggested in the answer of this post Entity Framework for Multi-tenant architecture - filterings single table by tenant ID) as this will make it very difficult to access all the goodies in EF.

After some research I started looking at Dependency Injection and specifically Autofac, but can't seem to get it off the ground (or maybe just don't quite understand IoC as well as I think I do).

Is what I'm trying to do achievable? Could DI solve my problem?

1

1 Answers

1
votes

Dependency Injection has nothing to do with either EF or multi-tenancy. DI is a means to provide dependencies to all the different pieces of code using them. It has nothing to do with databases.

If I misunderstood your intent, please clarify.