?

Log in

No account? Create an account

Previous Entry | Next Entry

Before this the interviewer can ask you what is concurrency ?. You can read about concurrency from http://questpond.over-blog.com/article-can-you-explain-the-term-concurrency-c-interview-questions-with-answers-120291637.html

In EF concurrency issue is resolved by using optimistic locking. Please refer ADO.NET chapter for what is optimistic locking and pessimistic locking?. To implement optimistic locking right click on the EDMX designer and set the concurrency mode to “Fixed” as shown in the below figure.

                                            liv1

Now whenever we have concurrency issues you should get “OptimisticConcurrencyException” error as shown in the below figure. You can then put a try / catch  to handle this situation.
                                            liv2

Below is a great ADO.NET Entity framework interview question video created by www.questpond.com which shows how to do CRUD using Entity framework.

Copy right www.questpond.com

Tags

Latest Month

September 2017
S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
Powered by LiveJournal.com