-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update DataBase #199
Comments
Hello Rodrigo Ascariz, after creating the migration with the add-migration
command, you need to apply the migration through the update-database
-context EquinoxContext command
Em ter., 5 de dez. de 2023 07:47, Rodrigo Ascariz ***@***.***>
escreveu:
… Hello.
Thanks for this project and sorry for my English.
I have changed all connections to DB
I am trying to update the DB, I have modified sql server and in VS
PowerShell I select the Equinox.Infra.Data project and execute these
commands but it does nothing.
add-migration ProjectsPart1 -context EquinoxContext -outputdir Migrations/
What can be?
—
Reply to this email directly, view it on GitHub
<#199>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD7WFET4ESHT4UWJDC3YXS3YH33UDAVCNFSM6AAAAABAHO2M5OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDKOBZGEZTSOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
The problem is that the file created by the add-migration command is created empty, not with the new tables that I have in SQL Server |
Good morning. But I am unable to update the Database, I have created the entities in the Domain.Models project and also in the Database. I execute the commands and it creates the empty ProyectosCartas.cs file. What can happen? |
Solved, thank you |
- Implement functionality to run initial migration before the application starts Fixes EduardoPires#199
- Implement functionality to run initial migration before the application starts Fixes EduardoPires#199
- Implement functionality to run initial migration before the application starts Fixes EduardoPires#199
Hello.
Thanks for this project and sorry for my English.
I have changed all connections to DB
I am trying to update the DB, I have modified sql server and in VS PowerShell I select the Equinox.Infra.Data project and execute these commands but it does nothing.
add-migration ProjectsPart1 -context EquinoxContext -outputdir Migrations/
What can be?
The text was updated successfully, but these errors were encountered: