Try like this:
public class TempContext : DbContext
{
public DbSet<Shop> Shops { get; set; }
public DbSet<Certificate> Certificates { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity<Shop>().HasRequired(x => x.Certificate);
}
}