Cannot insert the value NULL into column 'UserId', table 'WebsiteSeo.Security.UserRole'; column does not allow nulls. INSERT fails.
I'm saving a new user and need to save a new UserRoleEntity with it.
Once upon a time I could just create a new UserRoleEntity instance, set the RoleId and add it the UserRole collection of the user entity. LLBL would take care of setting the missing UserId value. It doesn't seem to want to do that in LLBL 3.
At runtime,
user.UserRoleUsingUserId[0].Fields["UserId"].IsForeignKey
returns false...
UserRoleEntity has two fields, UserId, RoleId they are both the combined primary key. Both are FK fields.