I only want to update a field based on the condition that is mentionned below. I know how to write it in SQL. I'm not sure how to accomplish this in entity framework.
UPDATE Table SET SomeDateTime = @NewDateTime WHERE Id = @MyId AND SomeDateTime > @NewDateTime
I want to use this particular query due to using a micro service architecture.
Ida primary key?ExecuteSqlCommand? give a check my answer.