Base solution for your next web application
Open Closed

adding a new table #6746


User avatar
0
palco.ps created

when i am trying to add a new table in the database an error appear at "column " word

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

6 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    Don't modify the file manually.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    palco.ps created

    i don't modify it manually i write this command in the package manager console (Add-Migration "added_Signatures_Table" ) and then just wirte a code inside the classes and method how must i do this ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Palcodeveloper

    Can you build the project ? If so, this can be something related to Visual Studio or some extension you are using. Try to close the solution and open it again.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    palco.ps created

    yes i can build it but there is no new table added to the database

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    palco.ps created

    i modify the code like this and then the error disappear but when i am writing update-database after the migration command there is no no new table added to the database

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    What is the MigrationId of the last record in __EFMigrationsHistory table ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)