У меня есть класс модели, как показано ниже:
public class student
{
public int id{ get; set; }
[Required]
[StringLength(50)]
pubblic string studentname{ get; set; }
[StringLength(50)]
public string gender { get; set; }
}
и контроллер
public class StudentController: ControllerBase
{
public class getColumns()
{
//return list of student model and it's properties here
}
}
Как получить список метаданных модели в моем контроллере? Пожалуйста, сообщите!