.net - Must I create explicit DbSet properties on my DbContext? -


I am using unit framework 6 code with an empty database. I have created a fairly large number of POCO classes with a complex class hierarchy (a proper number of tables and quite a solid square). I want to be able to decorate my classrooms in some way so that they can be automatically added to DBCTintact without having to create a DbSet property for each, but I worry that when I try to update -Database I have seen some threads here, where someone was asking a similar question, but to get the reference of an existing set, the response to using DBCOntax.Set () was more efficient.

If you are trusting code-first migration, then yes, EF your DbContext uses reflections to discover what tables to create in each table in your database, each DbSet property map.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -