Skip to content
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