KorzhCom / EasyData

Adaptive CRUD for ASP.NET Core. With EasyData you can get both API endpoints and client-side UI for all CRUD operations in a matter of minutes using just your DbContext and a few lines of code.
MIT License
594 stars 63 forks source link

Remove sufix "es" #157

Closed Alerinos closed 9 months ago

Alerinos commented 2 years ago

Adding a sufix to the end of each table name looks very bad. More information is described here. https://github.com/KorzhCom/EasyData/issues/153 I don't think this is a needed feature (even my client laughed about it when he asked me if I was exaggerating). Alternatively, you can make settings

antifree commented 1 year ago

Hello! Thank you for the contribution and sorry for answering lately. Could you please add an option for this change? I think it depends on the use-case to use plural or singular form

Alerinos commented 1 year ago

@antifree It seems to me that it shouldn't be, if someone wants to use their own name, they will use this:

[Display(Name = "HashTags", Description = "List of tags in the article")]
public class HashTag { ... }
Alerinos commented 1 year ago

@eqteamlead @antifree We can make such a simple change and let the programmer decide how we want to name the model?

korzh commented 9 months ago

We don't accept this change. If you need to show the original (not plural) names for each entity - there is usePluralNames property of EasyDataViewDispatcher and RootDataView. So, you can simply set that option to false:

new EasyDataViewDispatcher({
    endpoint: '/api/easydata',
    usePluralNames: false
}).run();