Skip to content

Blazor 8.0 and CSLA 8.2 BusinessListBase [UpdateChild] fails on Update of new child object #4648

Closed Answered by jhuerta3
jhuerta3 asked this question in Questions
Discussion options

You must be logged in to vote

I found the issue. Since I am using a Editable root object as a child object also I needed to add the insert method that did not take any parameters .

    [InsertChild]
    private void InsertChild([Inject] IAspNetUserRolesDal dal)
    {

        using (BypassPropertyChecks)
        {
            var item = new AspNetUserRoleEntity
            {
                RoleId = this.RoleId,
                UserId = this.UserId
            };
            var result = dal.Insert(item);
        }
    }

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jhuerta3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant