Skip to content

Should I add a ColumnSettings attribute in order to allow column customization in classes? #4

@alfonsohdez08

Description

@alfonsohdez08

For example, I have the following class:

public class Item
{
    public Guid Id {get; set;}

    [ColumnSettings(Name = "Item Description")]
    public string Description {get; set;}

    [ColumnSettings(Name = "Unit Price")]
    public decimal UnitPrice {get; set;}
}

The ColumnSettings attribute decorates the properties in order to provide columns metadata. Let's supose I have the following projector:

(Item i) => i

The projector above is implicitly projecting the whole Item object. So the columns generated would be: Id, Item Description and Unit Price.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions