Skip to content
This repository has been archived by the owner on Jul 26, 2019. It is now read-only.
Geovanni Perez edited this page Aug 24, 2015 · 2 revisions

Welcome to the tenantcore wiki!

DbContext methods

If you want to use a multiple database schema with TenantCore, create the next method in your DbContext and get all your DbContext instances through this method.

public static ApplicationDbContext CreateWithOptions(IdentityFactoryOptions<ApplicationDbContext> options,
            IOwinContext context)
{
    return context.GetDbContext<ApplicationDbContext>();
}
Clone this wiki locally