Convention Based field/property renaming

May 17, 2013 at 6:05 AM
will be great to add convention based sql field to cs property and field renaming (with exceptions support)
it's annoying to write code like
<ColumnSubstitution SQL="Customer_ID" CS="_customerID" Property="CustomerID" KeepCase="true" />
<ColumnSubstitution SQL="City_ID" CS="_cityID" Property="CityID" KeepCase="true" />
Coordinator
Jul 17, 2013 at 8:35 PM
I'm not quite following what your asking....can you clarify?
Jul 18, 2013 at 4:29 AM
I mean it will be good to add option to translate column names like

CREDIT_AMOUNT to C# property CreditAmount with backing field _creditAmount
CUSTOMER_ID to C# prop CustomerID with backing field _customerID
without writing settings like
<ColumnSubstitution SQL="Customer_ID" CS="_customerID" Property="CustomerID" KeepCase="true" />
<ColumnSubstitution SQL="City_ID" CS="_cityID" Property="CityID" KeepCase="true" />
because if you have a lot of tables and columns in db you must rewrite all propnames to satisfy C# standard conventions (camel case etc)