Nick Kahn
Nick Kahn

Reputation: 20078

Entity Framework 5 renaming - Database First

I'm using Database First approach and I have table called Campus and when I add to my edmx from SQL Server and I see that it renamed to Campu why is that doing?

Upvotes: 0

Views: 519

Answers (1)

ElliotSchmelliot
ElliotSchmelliot

Reputation: 8382

I'm guessing that your project is having some table pluralization problems. So when your table Campus is created, Entity Framework is literally reading it as an entity called a Campu that you have pluralized to be Campus.

See this link on how to change pluralization.

But this isn't really a problem right? You can change your model name back to Campus.

Upvotes: 1

Related Questions