Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[PrimaryKey("ActorId, MovieId", autoIncrement = false)]
public class ActorMovie
[PrimaryKeyColumn(OnColumns = "ActorId, MovieId", AutoIncrement = false)]
[ForeignKey(typeof(Actor), Name = "FK_ActorMovie_ActorId")]
public int ActorId { get; set; }
[ForeignKey(typeof(Movie), Name = "FK_ActorMovie_MovieId")]
public int MovieId { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment