Hi. I have two tables. One table contains comments on posts, another contains commenter information like nickname, site, etc.. There is FK relations betwin two tables Comment.CommenterId -> Commenter.Id Whenever user posts a comment I need to add comment and commenter at the same time. The problem is that I don't know what would be Commenter.Id after addition to assign it to Comment.CommenterId before addition.
What is the best practice to do such inserts?