problem with ling
.NET (Core and Framework)
1
Posts
1
Posters
0
Views
1
Watching
-
hi am new to ling i want to be able to insert manny rows transactiondetail with this code ctx.MasterTransaction.InsertOnSubmit(tranmaster) ctx.Submitchange() For Each td As TransactionDetail In transdetail td.TransId = tranmaster.TransId Next ctx.TransactionDetails.InsertAllOnSubmit (transdetail) ctx.SubmitChanges() i get this error 'Cannot add an entity with a key that is already in use' on submit changes