Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • .net
  • database

Entity Framework 5 on .NET 4.0 - DatabaseGeneratedOption.Identity is undefined

Jun 29, 2015 See the question and my original answer on StackOverflow

We had that problem very recently on an old project, and what we did was just

  • delete the EntityFramework reference in the project
  • right click on the project, do a Manage NuGet packages, go to the Updates category, and click Update on the Entity Framework item that was there in the list to version 6
  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms