✔ Solved InvalidOperationException: The entity type Data Model requires a primary key to be defined.

Опубликовано: 04 Октябрь 2024
на канале: CodeDocu Developer C# Asp Net Angular
10,012
27

https://codedocu.com/Details?d=2731&a...


An unhandled exception occurred while processing the request

InvalidOperationException: The entity type 'myModel' requires a primary key to be defined. If you intended to use a keyless entity type , call 'HasNoKey' in OnModelCreating
Keyless entity types
Lösung:
Wort [Key] vor die ID der Tablelle einfügen

C# .Net WPF UWP WinUI SQL Server Access Excel vba ++
Freelancer