You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Category.cs 454B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Diligent.WebAPI.Data.Entities
  8. {
  9. public class Category
  10. {
  11. public int Id { get; set; }
  12. public string Name { get; set; }
  13. [ForeignKey(nameof(File))]
  14. public int FileId { get; set; }
  15. public FileEntity File { get; set; }
  16. }
  17. }