Answer the question
In order to leave comments, you need to log in
Is it possible to generate tables in the database or a query based on the model?
Good afternoon. It seems that I have already said everything in the question, but I can also add that, for example, I built a model, indicated connections, and he will build tables in the database on this or generate a query for them. How to do this, that is, what development environment do you need under OC Windows? It is necessary to simplify the creation of tables in the database.
Answer the question
In order to leave comments, you need to log in
Use ORM: Entity Framework.
IDE respectively Visual Studio Community
Extremely easy to learn and use.
link:
poke
What you want is called Code First. First code and models, then tables and relationships. You can check here : https://metanit.com/sharp/entityframework/2.1.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question