Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i created new project C# & EF6 (Database First), but after some times i need to update the tables ( add new tables , Fields , delete Fields)

What I have tried:

in this time i use MySQL Query to do that , but i ask if there are any method to create the table using EF code ?
Posted
Updated 6-Jun-20 11:54am

1 solution

No. You can use one or other, not both in the same project.

For a new project using Code First, EF will automatically create the tables for you from the DbSet entries in your DbContext implementation.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900