OptimisticConcurrencyException — SQL 2008 R2 Instead of Insert Trigger with Entity Framework
- 阅读更多 关于 OptimisticConcurrencyException — SQL 2008 R2 Instead of Insert Trigger with Entity Framework
问题 Using a SQL 2008 R2 November release database and a .net 4.0 Beta 2 Azure worker role application. The worker role collects data and inserts it into a single SQL table with one identity column. Because there will likely be multiple instances of this worker role running, I created an Insert Instead Of trigger on the SQL table. The trigger performs Upsert functionality using the SQL Merge function. Using T-SQL I was able to verify the insert instead of trigger functions correctly, new rows were