こうじゃない?
PcitureクラスとFriendクラスを結びつけるとして、

class Relation
{
 public int PictureID { get; set; }
 public int FriendID { get; set; }
}

class PictureFriendContext : DbContext
{
 public DbSet<Picture> Pictures { get; set; }
 public DbSet<Friend> Friends { get; set; }
 public DbSet<Relation> Relations { get; set; }
}