Aaltuj / VxFormGenerator

The library contains a component, that nests itself into the Blazor EditForm instead of a wrapper around the EditForm. The component is able to generate a form based on a POCO or a ExpandoObject. Because of this architecture the library provides the developer flexibility and direct usage of the EditForm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow for lookup defintions for a property

Aaltuj opened this issue · comments

Requirements:

At the moment the generator supports only enums as a list. this needs to be extended with the following data types:

  • IEnumerator<>
  • Dictionary<bool, string>
  • Dictonary<bool, object> (Adds expression to the lookup, (object x)=> x.Name)

Solution:

Create an attribute that tells the generator to get the values;

[VxLookup(Expression, Name)]