These are my first steps with the entity framework 6.2.0, target framework is 4.6.1.
I am using a "model first" approach, automatically generating the entity classes and DDL code for the database structure based on the EDMX model. For this model, the database generation Workflow "TablePerTypeStrategy.xaml (VS)" is used, and the generated DDL code shows many tables, as one would expect.
However, the entity classes in the generated code files beneath model.tt are missing the Table attribute, which, as i understand it, are mandatory for using TPT strategy. I had to manually add those to get my unit tests working.
Am i missing something? Or is the tt-file actually really lacking the code to generate that attribute?
Update: As requested, here a screenshot of (a part of) the model.
Update 2: This is the connection string used:
private const string ConnectionString = "Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=\"P:\\Visual Studio\\Projects\\RightsManager\\Database\\RightsManager.mdf\"; Integrated Security=True;Connect Timeout=30";