Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Blog.Models;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Web;
- namespace BasketballAcademyBlog.Models
- {
- public class Comment
- {
- [Key]
- public int Id { get; set; }
- [Required]
- public string Content { get; set; }
- [ForeignKey("Author")]
- public string AuthorId { get; set; }
- public virtual ApplicationUser Author { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment