Reputation:
How do I do the Update table operation in ADO entity framweork ?
Upvotes: 0
Views: 491
Reputation: 20924
Entity Framework is currently limited to updates / deletes like this (in pseudo code):
DELETE FROM [Table] WHERE Key = Value
And you can't do things like this:
DELETE FROM [Table] WHERE [RANDOM CLAUSE]
The second example is what is generally called DML or Data Modification Language, and it isn't actually supported in EF.
There are workarounds however, see this question & my answer for more information.
Hope this helps Alex
Upvotes: 1