Batch processing issue
Posted: Tue 29 Jun 2021 16:55
Hey together,
I'm working actually on a tool for importing product lists (csv and xml) into a NopCommerce shop.
I'm making "batches" (100 iterations over InsertOnSubmit) and then calling the SubmitChanges method.
When importing Brands the name itself will appear multiple times (for sure) but when using the FirstOrDefault method on the specific table, even it has been added before with InsertOnSubmit (No SubmitChanges call yet) I will receive null.
Is this common? Or is there a simple configuration change I have to do?
I'm remembering that on the original LinqToSql it will work even of not yet called SubmitChanges. Id will be 0 but thats as expected.
Devart.Data: 5.0.2522.0
Devart.Data.Linq: 4.9.2067.0
Thanks in advance!
Warm regards
Florian Dahn
I'm working actually on a tool for importing product lists (csv and xml) into a NopCommerce shop.
I'm making "batches" (100 iterations over InsertOnSubmit) and then calling the SubmitChanges method.
When importing Brands the name itself will appear multiple times (for sure) but when using the FirstOrDefault method on the specific table, even it has been added before with InsertOnSubmit (No SubmitChanges call yet) I will receive null.
Is this common? Or is there a simple configuration change I have to do?
I'm remembering that on the original LinqToSql it will work even of not yet called SubmitChanges. Id will be 0 but thats as expected.
Devart.Data: 5.0.2522.0
Devart.Data.Linq: 4.9.2067.0
Thanks in advance!
Warm regards
Florian Dahn