EF Core 6 Adding a table manually?

asked 2023-01-17T14:19:19.31+00:00
Cenk 666 Reputation points

Hello friends,

I am working on a web API project that I implemented with the code-first approach. I wonder if there is a problem creating tables manually without using migrations. Does it cause any problems?

Thank you.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. answered 2023-01-17T15:58:24.3433333+00:00
    Nieze Ben Mansour 0 Reputation points

    Hi Cenk, To create a table manually, you can create the table with SSMS (for example) after that, you scaffold the database to generate the entities.

    This a link for how to use Reverse Enginner: https://learn.microsoft.com/en-us/ef/core/managing-schemas/scaffolding/?tabs=dotnet-core-cli


  2. answered 2023-01-17T16:05:16.78+00:00
    Nieze Ben Mansour 0 Reputation points

    @Mariem Ouerhani can you see this !

    No comments