Closed Alerinos closed 9 months 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
@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 { ... }
@eqteamlead @antifree We can make such a simple change and let the programmer decide how we want to name the model?
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();
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