- changed title to InsertAllWithChildren doesn't work with many-to-many relationships
- edited description
InsertAllWithChildren doesn't work with many-to-many relationships
Issue #14
invalid
Calling InsertAllWithChildren(items, true) to initially populate my databse doesn't work. It does not assign Ids to the children.
Comments (4)
-
reporter -
I already have some tests for recusive many-to-many inserts working properly ( see https://bitbucket.org/twincoders/sqlite-net-extensions/src/master/IntegrationTests.Touch/Tests/RecursiveWriteTests.cs) and it seems to be working fine in my projects.
Do you have
AutoIncrement
attribute in the primary keys? Have you defined the cascade operations in theManyToMany
attribute?Can you share a sanple reproducing the issue?
-
reporter It works. I was forgetting the cascade attribute and setting recursive to true.
-
reporter - changed status to invalid
I'm stupid.
- Log in to comment