Asp.net mvc diff between DeleteAllOnSubmit and deleteonSubmit

What is the real difference b / w DeleteAllOnSubmit and deleteonSubmit and which one is more suitable for use?

+3
source share
1 answer

There is no such thing as DeleteOnSubmitand in ASP.NET MVC DeleteAllOnSubmit, so I assume that you mean the methods in LINQ to SQL tables. (Correct me if not.)

Basically you use DeleteOnSubmitto delete a single row from a table, specifying a single object that maps to the row you want to delete.

DeleteAllOnSubmit , , , IEnumerable<> , , . (List<T>, Collection<T> .)

+4

Source: https://habr.com/ru/post/1746519/


All Articles