Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[TableName("ActorMovie")]
[PrimaryKey("ActorId, MovieId", autoIncrement = false)]
[ExplicitColumns]
public class ActorMovie
{
[Column("ActorId")]
[PrimaryKeyColumn(OnColumns = "ActorId, MovieId", AutoIncrement = false)]
[ForeignKey(typeof(Actor), Name = "FK_ActorMovie_ActorId")]
public int ActorId { get; set; }
[Column("MovieId")]
[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
You can’t perform that action at this time.