We help IT Professionals succeed at work.
Get Started

DataTable naming conventions and Entity Framework 4.0

Last Modified: 2012-05-10
I am new to EF4 but find that it's most easy to alow your table names to become your exact object names without needed to add capitalization, for example.

A "customer" table that maps to a "Customer" object requires the developer to modify the object name in the .EDMX designer. The problem is when you need to delete tables and re-add them, the program will not compile until you rename "customer" to "Customer".

That will become a pain when I have lots of table to rename.

So I want to rename the table to Customer but was told the convention there was to use lower case.

My question is whether that's a convention coming from the Open Source/LAMP end of the spectrum?  We are using .NET Framwork and I wonder about the convention in the Microsoft world.

Please let me know if Customer is a more convention table name than customer.

Watch Question
Most Valuable Expert 2012
Top Expert 2008
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE