Reputation: 643
I have a database with a very large number of tables which unfortunately have been named with no standard convention whatsoever:
I am using Entity Framework with the standard T4 Code Generation template to create the POCO classes in C#
Is there a best practice I can follow which lets me incorporate my own convention to name these tables in the C# app without having to touch anything in SQL? The auto-generated classes look like:
I would like to have some sort of a wrapper:
One approach would be to just create wrapper classes?.. Any ideas?
Upvotes: 4
Views: 2210
Reputation: 6786
If you go to your edmx file you can click on each of the entities and rename them in there (Entity Set Name & Name in the properties window). Then if your regenerate the classes created by the T4 template your classes will have the new names.
Upvotes: 4