Beispiel #1
0
        public async Task <int> GetMaxOrder()
        {
            var roleStore = new MySqlRoleStore <IdentityRole>("InventoryConnection");

            return(await roleStore.GetMaxOrderAsync());
        }
Beispiel #2
0
        public static ApplicationRoleManager Create(IdentityFactoryOptions <ApplicationRoleManager> options, IOwinContext context)
        {
            var roleStore = new MySqlRoleStore <IdentityRole>("InventoryConnection");

            return(new ApplicationRoleManager(roleStore));
        }