Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Search Engine

Here you can search through the pages of this Namespace, their attachments and the files uploaded to the system.
Note: the results will only display the items you have permissions to read.



Filter by Category

























































This search, performed through 3.59 MB (635 documents, 14094 words), completed in 0.0 seconds and yielded 1 results.

Concurrency Exceptions - Entity Framework 6 and EF Core — 100.0%

[...] https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/getting-started-with-ef-using-mvc/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application Implementation Notes The following code works equally well in EF6 as EF Core. The RowVersion field that is added is nullable. Data Model The entity/table that we want to implement optimistic concurrency on must have a field similar to the following. [Timestamp] public byte[] RowVersion { get; set; } Exception Handling and Retry Logic var done = false; var iterNum = 1; var maxIterations = 5; do { try { LoggingEngine.Info($"Starting Iteration {iterNum}."); [...]

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.