Well sadly the following doesn’t work too:
communityMember = new Member
{
DisplayName = "Codidact Community",
Bio = "The codidact community manifested",
};
communityMember.CreatedByMember = communityMember;
communityMember.LastModifiedByMember = communityMember;
context.Members.Add(communityMember);
context.SaveChanges();
It wouldn’t work if you wrote pure SQL too and EF isn’t some voodoo magic.
So I am going to let the createdMemberById/lastmodifiedbyMemberId be null