Product Name | Color | Size |
---|---|---|
T Shirt | Red | Small |
Pant | Yellow | Large |
Green |
Desired results:
T Shirt Red Small
T Shirt Red Large
T Shirt Yellow Small
T Shirt Yellow Large
T Shirt Green Small
T Shirt Green Large
Pant Red Small
Pant Red Large
Pant Yellow Small
Pant Yellow Large
Pant Green Small
Pant Green Large
As there is no code example, it is not clear what exact thing you would like to achieve.
I am assuming, you are looking for a way to create Custom Attributes in Asp.Net Core. Please correct me if my assumption is wrong.
Custom attributes are essentially traditional classes that derive directly or indirectly from
System.Attribute
. Just like traditional classes, custom attributes contain methods that store and retrieve data.Below is the code example of Custom Attribute.
Reference: Writing Custom Attributes
If this is not the thing you are looking for, kindly provide more information about your requirements. I will try to provide you with further suggestions.