SHARE
TWEET

Untitled

davichonov365 Dec 17th, 2016 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top