Exemplo n.º 1
0
 protected override void OnConfiguring(DbContextOptionsBuilder dbContextOptionsBuilder)
 {
     dbContextOptionsBuilder
     .UseLazyLoadingProxies()
     .UseInternalServiceProvider(_serviceProvider)
     .UseSqlServer(Configuracao.ObterConnectionString());
 }