Radzen doesn't like property called 'username'

Hello Radzen Team!

I'm trying to get the property 'username' from my User class, but Radzen keeps replacing it with 'Username' (capital letter) for some reason.




[Table("user")]
    public class User {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }
        [MaxLength(50)]
        public string username { get; set; }
        [MaxLength(32)]
        public string password { get; set; }
        public int personId { get; set; }
        public int roleId { get; set; }
        public int language { get; set; }
        public Person person { get; set; }
        public Role role { get; set; }
    }

Okay, so my workaround was just calling out the 'args' parameter instead of the translated 'event' parameter. This worked just fine:

Will be fixed in the next update!

1 Like