Skip to content

[Bug] Using ClassName Attribute for naming column throw a exception when inserts two columns with the same name #5

@portal7

Description

@portal7

Naming the column's name attribute with the same name generates an exception.

Example: (For the sake of the simplicity I be cut off some part of the class content )

[ExportableExcelHeader(BackColor = "#FF0000", BorderColor = "#FF0000", FontName = "Calibri")]
    public class ShipmentFileExport
    {
 .........

       
        [Exportable(7, "Nombre*", FieldValueType.Text)]
        public string NombreDestinatario { get; set; }

        [Exportable(8, "Apellido *", FieldValueType.Text)]
        public string ApellidoDestinatario { get; set; }

        [Exportable(9, "DNI", FieldValueType.Numeric)]
        public int DniDestinatario { get; set; }

        [Exportable(10, "Email", FieldValueType.Text)]
        public string EmailDestinatario { get; set; }

.........

       [Exportable(21, "Nombre *", FieldValueType.Text)]
        public string NombreRemitente { get; set; }

        [Exportable(22, "Apellido *", FieldValueType.Text)]
        public string ApellidoRemitente { get; set; }

        [Exportable(23, "DNI", FieldValueType.Numeric)]
        public int DniRemitente { get; set; }

        [Exportable(24, "Email *", FieldValueType.Text)]
        public string EmailRemitente { get; set; }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions