c# - Entity framework: Best practice for case (as in pascal-case) in database tables/columns -


In C # I always use Pascal Case (best practice, right?) For properties, for the database I Always use lowercase for table and column names (best practice, right?)

When I create classes from the tables using the Entity framework, then I get the lowercase property name in C # See, I manually refract in C # O

I wonder, Pascal Season of the database is best practice for using table names and column names, when the purpose of the database is to provide support for the C # application which uses the Entity Framework ?

You are right about assuming the Pascal wrapper for C # properties, though I disagree with your comment I am the best practice for the low cover database. I had always thought that the Pascal cover was the best practice in the name and column structure of the table. (Anyway I was told by an DBA on an old job and it seems that I have worked everywhere.)

However, if your company's coding / development standards say that database columns And there are fewer case names for tables, then you have to do this you should not specifically write a database to use with the organization framework. EF is an ORM, not a database, so the database should not care about how it has reached it.

You should design a database, paste it with any rule, and then unit framework should be remapped to those columns. It is incredibly easy to fix property names through this model editor.


Comments