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!

Vas
  • 57
  • 6

1 Answers1

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.

Community
  • 1
  • 1
Toan Vo
  • 1,270
  • 9
  • 19