Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when using Mysql database migrations #290

Open
slarkerino opened this issue Feb 28, 2025 · 0 comments
Open

Exception when using Mysql database migrations #290

slarkerino opened this issue Feb 28, 2025 · 0 comments

Comments

@slarkerino
Copy link

InvalidOperationException has been thrown. The operation will be tried 2 times more. Exception:
The entity type 'OrderDiscountPreviewInfoModel' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant