0

How do I do the Update table operation in ADO entity framweork ?

NullUserException
  • 83,810
  • 28
  • 209
  • 234

1 Answers1

1

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

Community
  • 1
  • 1
Alex James
  • 20,874
  • 3
  • 50
  • 49