I have code like this:
var newMsg = new Msg { Var1 = var1, Var2 = var2 }; using (AppDataContext appDataContext = new AppDataContext(ConnectionString)) { appDataContext.CClass.InsertOnSubmit(newMsg); appDataContext.SubmitChanges(); }
After reading this post I believe that the same logic applies.
Does anyone think that this is subject to SQL Injection Attack?
The second answer in the post you’re referencing says it:
It does not concatenate property values into a one big INSERT … VALUES(‘…’, ‘…’)