Entity Framework SQLite staging tables are not generated

I would like to create a model from an existing database. My database is relational and has a many-to-many relationship with staging tables containing two foreign keys.

For example: Point

, Person

and PointPerson

with FK up Point

and FK up Person

.

When I use "Generate Model from Database" in VS 2015, it just creates the entities of all tables (including PointPerson

) without relationships, and therefore in Point

and classes to each other.

Can I generate it properly (relationship in model, PointPerson

in database) somehow, or do I need to do this at the beginning of the code?

+3


source to share





All Articles