0

I'm using Entity Framework 4, C# and MSSQL Server 2008 R2. I know about the optimistic concurrency with rowversion, But I want to include two fields in concurrency. One is updated_date (datetime) and another is updated_by (string). For now I only can do it with updated_date concurrency mode fixed. What should I do to include updated_by also?

Thanks in advance!

1 Answer 1

2

You can take reference at here about optimistic pattern on EF. The EF have supported your scenario follow the link. With your scenario you can read original value of fields on object to validate it has been changed or not.

One more link and here to help you have one more approach to resolve your case.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.