Calling Store method with new objects having Foreign Key #1636
Unanswered
kamalsivalingam
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am new to Marten and I am trying to use Store(params object[] entities) method to store couple of documents that have ForeignKey relationship. While storing the new objects, I am getting FK constraint issue with Id being 0 for the Foreign entity. I was thinking the Store method takes care of inserting and setting the FK. Am I wrong? Should I call Store method twice in this case?
Beta Was this translation helpful? Give feedback.
All reactions