Is there any way I can tell EF to not worry about the number of rows a DELETE
or UPDATE
do or don\'t do?
I\'m trying to delete
You can in fact ignore these kinds of issues by setting:
db.Configuration.ValidateOnSaveEnabled = false;
Where db
is the DbContext instance.
Obviously you should know what you're doing when you do this, but then again, most approaches to updating a database that are not EF don't have any change tracking/validation and just issue update/insert/delete to the database naively without checking anything first, so you're basically just telling EF to behave more like that.