Question

I am trying to add a ADO.NET to my asp.net project.

It generates everything correctly, except it leaves out one of my tables,

I have a feeling it might be due to a naming issue or something,

It add my one tables called Users but then the table it is excluding is called 'UserCompanyhow ever I have tried turning off the option topluralize or singulise generated object names` and it still does the same,

The UserCompany Table is a simple table consisting of two ints,

Userid , CompanyId

Is there a an issue or a common bug that I am not aware of? ANd how cna I work aroudn this, as I have been using the model successfully up until now where I need to use the one table which aint there.

Was it helpful?

Solution

I found out the issue,

My one table did not have a primary key, And as far as I know EF requires that your table have a primary key.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top