Base solution for your next web application

Activities of "mrvithan"

Answer

Yes, i do. I use AngularJS 1, ASP.NET MVC, and WebAPI

I have look into the sample but doesn't see any notification or signalIR code.

Please advice.

Ok i can see how already. Thx.

Nope. I try to reference to AbpUser<TTenant, TUser>, but still no luck

User class is not defined .... seems that i don't know its namespace.

hummm ... maybe a couple month ago, 'cause it is a live-production system already. Is there any code i can apply to the previous version.

Thank for your clarification. But i have a bit more question.

From my understanding now, it seems that permissions are the subset of a a role. So we create a role (role name) and assign permissions (permission name) to its, and then we assign the role to a user. If so, then i can understand this code

var adminRoleForDefaultTenant = context.Roles.FirstOrDefault(r => r.TenantId == defaultTenant.Id && r.Name == "Admin");
            if (adminRoleForDefaultTenant == null)
            {
                adminRoleForDefaultTenant = context.Roles.Add(new Role(defaultTenant.Id, "Admin", "Admin"));
                context.SaveChanges();

                //Permission definitions for Admin of 'Default' tenant
                context.Permissions.Add(new RolePermissionSetting { RoleId = adminRoleForDefaultTenant.Id, Name = "CanDeleteAnswers", IsGranted = true });
                context.Permissions.Add(new RolePermissionSetting { RoleId = adminRoleForDefaultTenant.Id, Name = "CanDeleteQuestions", IsGranted = true });
                context.SaveChanges();
            }

However, I still don't understand why we have to declare this code :

public class MyAuthorizationProvider : AuthorizationProvider
{
    public override void SetPermissions(IPermissionDefinitionContext context)
    {
        var administration = context.CreatePermission("Administration");

        var userManagement = administration.CreateChildPermission("Administration.UserManagement");
        userManagement.CreateChildPermission("Administration.UserManagement.CreateUser");

        var roleManagement = administration.CreateChildPermission("Administration.RoleManagement");
    }
}

And if so, why do i have to declare Administration.UserManagement, not only Administration.CreateUser.

Your suggestion may help a lot.

Beside SQL command timeout, do i need to config ajax call timeout also ? i have a long query which might take 3 - 5 mins to finish.

Please suggest.

Ok i found the error. The email is duplicated...!!! But it should throw an exception..

Yes, i did.

It happen to all controller i try to load. But now i remove the DLL and use different SDK (html2pdf) and i remove the additional code and everything run normal again.

Showing 1 to 10 of 17 entries