On 22 Apr., 17:52, Anders <[email protected]> wrote: > On Apr 22, 12:56 pm, mabu <[email protected]> wrote: > > > Some Code may help: > >[...] > > In the database i following: > > * p is inserted twice with correct reportid > > * c is inserted three times with the first product-id > > * c2 is inserted once but without a product id > > Just noticed: How did p get inserted twice? Don't you have a primary > (or unique) key on the column? And if you don't, do you have foreign > keys?
i set primary keys in the database and also all foreign keys - and also in the dbml. Now i started dbmetal to create the dbml at the database definition and afterwards the code file. in my example i get an error now because of a foreign key violation -> the second component is inserted without a productid ( 0 ) the second component is still not tracked as reference of the product ... seems to be another bug? Martin -- You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/dblinq?hl=en.
