Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1103515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:21:14+00:00 2026-05-17T01:21:14+00:00

In C# I always use PascalCase for properties (best practice, right?), for databases i

  • 0

In C# I always use PascalCase for properties (best practice, right?), for databases i always use lowercase for tables and columnnames (best practice, right?)

When I generate classes from tables using entity framework, i get lowercase property names in C#, so I manually refactor the case in C#.

I wondered, is it best practice to use PascalCase table names and column names in the database, when the purpose of the database is to provide backing for a C# application that uses entity framework ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:21:14+00:00Added an answer on May 17, 2026 at 1:21 am

    You’re right about Pascal Casing being right for C# properties, however I would disagree with your comment about lower casing being best practise for databases. I always thought Pascal casing was the best practise in table names and column structure. (That’s what I was told by a DBA at an old job anyway and it seems to be consistent with everywhere else I’ve worked.)

    Anyway, if your company’s coding/development standards say that the database must have lower case names for columns and tables, then you have to do it. You shouldn’t write a database specifically for use with Entity Framework. EF is an ORM, not a database, so the database should not care about how it’s accessed.

    You should design the database, sticking to any rules you have in place, and then make Entity Framework remap those columns to correct property names. It’s incredibly easy to do through the Model Editor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I always use auto_increment when making tables. Right now I'm trying to make a
Should I ALWAYS use this practice... Public Function DoWork() Using dc as New myDataContext()
In almost all my classes I use properties and I always use retain properties
I have learnt from this post that always use <a> tags or <button> tags
In my test automation practice I always use a gui mapping strategy that reduces
As what i experience using Sqlite for my Small Applications i always use sqliteadmin
I always use the same folder structure in my projects (includes/ classes/ style.css index.php)
From what I understand I should always use self.property_name everywhere except in getter and
I always use Enterprise Architect to generate the class diagram of a C++ project
I always use brackets in sql queries. But I have example: DELETE FROM prog

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.