?

Log in

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

Buy 600+ Real Time Interview Videos

Call +91-22-66752917 or mail us on questpond@questpond.com for more details on C#, .NET, ASP.NET, SQL Server interview question videos.

SQL Server interview question videos

Latest Month

January 2017
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Tags

Powered by LiveJournal.com