2009-06-16 9 views

Antwort

1

Entity Framework zur Zeit auf Updates beschränkt ist/löscht wie folgt aus (in Pseudocode):

DELETE FROM [Table] WHERE Key = Value 

Und Sie können Dinge wie diese nicht tun:

DELETE FROM [Table] WHERE [RANDOM CLAUSE] 

Das zweite Beispiel ist das, was wird allgemein DML oder Data Modification Language genannt und wird in EF nicht unterstützt.

Es gibt jedoch Problemumgehungen, siehe this question & meine Antwort für weitere Informationen.

Hoffe, das hilft Alex