Why can't I insert record with foreign key in a single server request?

后端 未结 3 957
走了就别回头了
走了就别回头了 2020-12-31 20:46

I\'m tryring to do a simple insert with foreign key, but it seems that I need to use db.SaveChanges() for every record insert. How can I manage to use only one

3条回答
  •  暖寄归人
    2020-12-31 20:54

    Apperantly using UNSIGNED BIGINT causes this problem. When I switched to SIGNED BIGINT everything worked as it supposed to.

提交回复
热议问题