verdie-g / StoredProcedureEFCore

Entity Framework Core extension to execute stored procedures
MIT License
192 stars 44 forks source link

Override behavior of Underscores in result set column names #13

Closed Vijaykumarj closed 6 years ago

Vijaykumarj commented 6 years ago

Can u guide to how to Override the behavior of "Underscores in result set column names ("column_name" is mapped to ColumnName property)" Becoz my Model class already used in mobile & some another clients.

verdie-g commented 6 years ago

Do you mean you have underscores in your properties so don't want them to be removed ?

Vijaykumarj commented 6 years ago

First of all thank you to @verdie-g for ur fast response. S, I don't want to remove underscore in my model class. Can u provide alternative way to fulfill of my requirement. i am using MYSQL Ver 5.5 & ASP.NET Core 2. Thanks in advance.

verdie-g commented 6 years ago

Ok, I can add a method to IStoredProcBuilder to override the removal of underscore.

Vijaykumarj commented 6 years ago

thanks a lot for accepting of my request. May i know when it will be released of this feature. thanks in advance.

verdie-g commented 6 years ago

I realize it is a heavy feature. I won't have time to do it. Can you still fork the project, the removal of the underscores is here : https://github.com/verdie-g/StoredProcedureEFCore/blob/develop/StoredProcedureEFCore/Mapper.cs#L92

Vijaykumarj commented 6 years ago

thank u @verdie-g. I will be fork it.