views:

22

answers:

2

I can't seem to find the answer to what I think is an easy question. I have a Entity model I just created and I want to set the name of the table and the columns by hand. I can see the "mapping details," but how do I edit them or add to them?

A: 

If you have your .edmx file open in Visual Studio, you should be able to simply right-click on a table or a column in the table and choose 'rename'. Once you change the name it will be reflected in the Mapping Details window.

CletusLoomis
Problem is that's editing the entity names and properties, not the underlying SQL tables and columns. Sorry if my question was a little unclear. Maybe what I'm doing doesn't even make sense.
Bialecki
A: 

It appears the answer is, you can't without going into the XML. You can use the Entity Framework Power Pack to customize the templates for generation, but there's no direct GUI for editing the mappings.

Bialecki

related questions