Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[PrimaryKey("Id", autoIncrement = true)]
public class Movie
[PrimaryKeyColumn(AutoIncrement = true)]
public int Id { get; set; }
public string Title { get; set; }
[ForeignKey(typeof(Director), Name = "FK_Movie_DirectorId")]
public int DirectorId { get; set; }
public Director Director { get; set; }
public List<Actor> Actors { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment