Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "noah"

In the AbpUser class, the "Name" and "Surname" fields are marked as Required by an attribute. I'm not sure why this would be enforced, as it is often valid to have a user without both name components, especially during registration. How can I inherit from AbpUser but without the Required validation on these fields? Thanks.

I have an Entity Framework entity model that has a virtual navigation property for lazy loading. When using an Include extension method on the GetAll() from the template's Application project, it seems to work to eager load the property. However, I added an additional project to the solution and when calling the same method through an IAppService-based class , this error is thrown:

"The operation cannot be completed because the DbContext has been disposed."

Here is the method in my custom repository class:

public List<ActionDefinition> GetAllWithSchedule()
        {
            var query = GetAll();
            var actions = query.Include(action => action.Schedule).ToList();
            return actions;
        }

What do I need to do to handle repository access from a different, new project not included in the template?

It appears that in ABP authorization, if a user is a member of a role that is granted permission X, but doesn't have permission X granted directly on his user record, that the result is to deny X.

Is this correct? Shouldn't a user automatically inherit all the permissions for his assigned role(s)? In particular, if I later add a new new permission to a role, I would expect all the role members to be granted that permission. This doesn't seem to be the case now.

I've downloaded the solution template and started working. I notice that when logging in as the default admin account into the host side, I don't see any permissions loading when trying to edit a role. The permissions do however appear when in a specific tenant. In the host side, I see this with no permissions tree ever loading. What could be causing this? There is no error in the audit log. In browser console, see this:

SCRIPT0: Unable to get property 'children' of undefined or null reference blob:71FED387-F8EE-4A44-86CF-2B310FB1DE22 (215,1)

In some of the documentation examples, "virtual" keyword is used on scalar entity properties, for example:

<a class="postlink" href="http://aspnetzero.com/Documents/Developing-Step-By-Step#creating-person-entity">http://aspnetzero.com/Documents/Develop ... son-entity</a>

I'm aware of using virtual to lazy load related entities from another table, but not clear on why "virtual" is used with string properties in these examples? Thanks!

Showing 1 to 5 of 5 entries