MergeBusinessListGraph[T,C](T, T)' violates the constraint of type 'T'. #1880
-
I have a weird one. When the SaveAndMergeAsync is executed, I get a this error: ArgumentException: GenericArguments[0], 'Csi.Security.Shared.CsiRoleClaimIdCollection', on 'Void MergeBusinessListGraph[T,C](T, T)' violates the constraint of type 'T'. What's strange is that if I uncomment the 3 commented lines, it works. If I replace await security.SaveAndMergeAsync with security = security.Save(), it works. Any help figuring out how to troubleshoot this would be appreciated. Thanks! Test Code:
Stack Trace: System.Reflection.TargetInvocationException Inner Exception 1: Inner Exception 2: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm sorry to have bothered you with this. It appears Roles collection inherited from BusinessBindingListBase vs BusinessListBase. Switching to the later resolved my issue. |
Beta Was this translation helpful? Give feedback.
I'm sorry to have bothered you with this.
It appears Roles collection inherited from BusinessBindingListBase vs BusinessListBase. Switching to the later resolved my issue.