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

[Idea] Additional information about the table #112

Closed Alerinos closed 2 years ago

Alerinos commented 2 years ago

I got the idea that it would be nice to add information about it on the home page and in the table details. I mean, how many records are there, how many data takes (kb/mb), once I saw a ready-made function that returns all such information. A simple thing and I think it will help and be useful.

What do you think about this?

antifree commented 2 years ago

Hello, thank you for your proposal. Here are my thoughts about it:

Moreover, to render the home page we do not make requests to a database at all, all the information is taken from DbContext metadata, what you propose cannot be done without additional requests to the database

@korzh, What do you think?

korzh commented 2 years ago

Totally agree with @antifree

It would be nice to have this info in some cases but this feature is definitely not needed for everyone and requires a lot of additional requests to DB (1 extra request per each entity at least).

I think what we can do, is to provide an easy way for adding this info (or any extra data) into existing list items (on the Root view) and, maybe, a bunch of functions (both on the frontend part and in the API) that will help to collects this information for those who need it.

Obviously, it's not a priority functionality.