Skip to content

Instantly share code, notes, and snippets.

@emrekizildas
Created March 19, 2019 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emrekizildas/f3b211afb53f7e3e5c646ac4625a19e4 to your computer and use it in GitHub Desktop.
Save emrekizildas/f3b211afb53f7e3e5c646ac4625a19e4 to your computer and use it in GitHub Desktop.
Author Sınıfı
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace CoreAPI.Models
{
public class Author
{
[Key]
public int AuthorID { get; set; }
[MaxLength(200)]
public string Name { get; set; }
public virtual ICollection<Book> Book { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment