Base solution for your next web application

Activities of "hussein"

I fixed by changing

[DependsOn(typeof(AbpEntityFrameworkModule))] to [DependsOn(typeof(AbpZeroEntityFrameworkModule))]

Hi,

Thank you for replying.

What about IRepository, if i did an interface called IExambleRepository implements IRepositoy will this open a connection to the database?

No, i'm using ASP.NET Boilerplate Framework and TenantId or UserId are always Null.

How to set values for TenantId or UserId ?

Thanks hikalkan,

i already used 2 DbContexts one for the login information and tenant data and the other one for each instance data.

when user login he can access the first DbContext and get his tenant database name and then i want to pass this database name to the other DbContext to set the its connectionstring.

i want to use TenantId that in the second DbContext to pass the tenant-id throught it but i don't know how to set the TenantId inside AbpSession?

Thanks hikalkan for the reply,

what i'm doing now is multi-tenancy application but using more than database not one database and a tenant id for each record.

I have a login database and when user login i get his database name which the system should connect to, so i want from the AccountController to pass the database name to my DbContext. How can i do that ?

Thanks

I followed your steps and everything is working great, but the only problem is how to create a repository class for an entity from the second dbContext.

The repository class inherits from RepositroyBase<entity> and the constructor takes any class that inherts AbpDbContext class.

what i need now is to use Context property on my repository and see its own IDbSet<Entity>.

Showing 1 to 6 of 6 entries