Entity Framework POCO entity template : format property names

properties in the database are all in small case and use underscore for word separation. E.g.:

customer_order_id

I want the property names to conform to my PropertyNameCodingConvention, i.e.: customer_order_id -> CustomerOrderId

I have changed the T4 template to accomplish that but I am curious if there is a solution already available.

Answers


In EDMX file, you have two different schema, and one mapping schema. What you can do is, you can modify conceptual schema and change property names, however refreshing EDMX might erase this information. But by doing this, you will not have to change template at all.


Need Your Help

In the WinForms DevExpress XtraWizard control, how can one hide the back button?

c# .net winforms devexpress

I know that if I set the WizardStyle of an XtraWizard control to WizardAero, it will remove or hide the back button from the first page instead of simply disabling it, as can be seen here. I want ...

Prevent a session from expiring?

image cookies session-cookies php

We have a simple CCTV system in our office that shows a live image from each of our security cameras. The CCTV system doesn't have an API or any method of extracting the live images. You can howeve...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.