User.cs 522 B

12345678910111213141516171819
  1. using Microsoft.AspNetCore.Mvc;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace BelovAPI.ModelBase
  5. {
  6. [Route("api/[controller]")]
  7. [ApiController]
  8. [ApiExplorerSettings(GroupName = "Действия с пользователем")]
  9. [Table("users")]
  10. public class User
  11. {
  12. [Key]
  13. public int Id { get; set; }
  14. [Column("nameUser")]
  15. public string nameUser { get; set; }
  16. public int Age { get; set; }
  17. }
  18. }