EF Core - Map dynamic columns to a list

0

I need help mapping EF Core entities.

I have products table and this table may contain different columns depending on customer customization, text columns will always be. I have a table and an entity called Label where it tells me the name of the column in the table of products. I need to map this to a Label list within the Product entity.

Product Table

-id

-title

-codigo_a

-codigo_b

Label Table

-id -NameColumn -title

I have the records in the label table:

1 - codigo_a - Code A

2 - codigo_b - Code B

    
asked by anonymous 23.08.2018 / 16:12

0 answers