davichonov365

Untitled

Dec 17th, 2016
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. using Blog.Models;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. using System.Linq;
  7. using System.Web;
  8.  
  9. namespace BasketballAcademyBlog.Models
  10. {
  11. public class Comment
  12. {
  13. [Key]
  14. public int Id { get; set; }
  15.  
  16. [Required]
  17. public string Content { get; set; }
  18.  
  19. [ForeignKey("Author")]
  20. public string AuthorId { get; set; }
  21.  
  22. public virtual ApplicationUser Author { get; set; }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment