We have this very strange issue on LINQ to SQL Code.
Consider this code snippet :
var wissen = db.Table.Where(f => f.Name == somevalue);
db.Table.DeleteAllOnSubmit(wissen);
db.SubmitChanges();
This works as expected on our dev servers, but when we are deploying this to our production server it doesn't give any errors but it doesn't delete anything neither altough it should.
When we replace this code with this :
db.ExecuteCommand("DELETE FROM Table WHERE Name = {0}", somevalue);
thing work just fine.
The workaround works just fine, but we would be happy to know what exactly goes wrong.
Looking forward to your comments :)
Dieter