daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Mar 24th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4.  
  5. namespace CoreAPI.Models
  6. {
  7.     public class Book
  8.     {
  9.         [Key]
  10.         public int BookID { get; set; }
  11.  
  12.         [MaxLength(50)]
  13.         public string Name { get; set; }
  14.  
  15.         [ForeignKey("Author")]
  16.         public int AuthorID { get; set; }
  17.         public virtual Author Author { get; set; }
  18.  
  19.     }
  20. }
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