Ola fiz esse bloco de configuração, porem recebi o seguinte erro.
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
string stringConexao = ConfigurationManager.ConnectionStrings
["DbLoja"].ConnectionString;
optionsBuilder.UseSqlServer(stringConexao);
base.OnConfiguring(optionsBuilder);
}
Severity Code Description Project File Line Suppression State Error CS1061 'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer' and no extension method 'UseSqlServer' accepting a first argument of type 'DbContextOptionsBuilder' could be found (are you missing a using directive or an assembly reference?) lojaComEntity c:\users\andre\documents\visual studio 2015\Projects\TesteEntity\lojaComEntity\Mapeamento\EntidadesContext.cs 15 Active.
Como se não existisse esse método UseSqlServer.