Reference tables, also referred to as type tables or lookup tables, are typically small tables containing slow changing or static data like a list of countries, address types (billing, mailing, shipping), or phone number types (home, mobile, work). There tends to be many reference tables in well normalized enterprise application databases. Some are static so no UI is needed to maintain them. Others require some occasional updates. For this last group it’s good to have a UI available for the non-technical administrator to use. However it can take some time to produce all the admin UIs needed for the multitude of reference tables. Wouldn’t it be nice to have a quick way to create these admin UIs?
I think so, which is why I created the Admin Component. A simple to use generic component for performing the basic CRUD operations on a table with a few columns. Just declare the type, the names of a few columns (Id is the only one required), give it a title, wire it to a get and update method, pass any error messages to another parameter, and it’s good to go. Here’s an example:
Now since this is a component and you have access to the source code you now have one place to make modifications that would be applied to all your admin UIs. Pretty sweet huh.
Here’s what the example looks like.
Get the source code and try the live demo at the Blazor Component Authority Demo app.
1 comments On Admin Component
I like the truck pushing the blocks as your photo. We are learning about look up relationships in our class. Interesting to see another perspective
Comments are closed.