asp.net mvc - I want to make multi tenant site in identity 2.0 but not using user table. Can anyone give any demo project -


public void configureauth(iappbuilder app) {     startup.dataprotectionprovider = app.getdataprotectionprovider();     app.createperowincontext(applicationdbcontext.create);     app.createperowincontext<applicationusermanager>(applicationusermanager.create);     app.createperowincontext<applicationrolemanager>(applicationrolemanager.create);     app.createperowincontext<applicationcustommanager>(applicationcustommanager.create); } 

i need custom manager code identity 2.0 in asp.net mvc.

here need tenant not user have table named site. want site curd handle owin context.

i need example of custom application manager code other entity except user , role.

hope gets started

 public class applicationcustommanager : idisposable {     public applicationcustommanager(applicationdbcontext _applicationdbcontext)     {         //do operations per requirements _applicationdbcontext       }     public static applicationcustommanager create(identityfactoryoptions<applicationcustommanager> options, iowincontext context)     {         var _applicationcustommanager = new applicationcustommanager(context.get<applicationdbcontext>());         return  _applicationcustommanager;     }      public void dispose()     {        } 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -