Skip to content

Commit

Permalink
adjust conn strings
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdeli committed May 20, 2019
1 parent b3452e5 commit 49b23eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MoviesApi/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public Startup(IConfiguration configuration)
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
var connection = @"Server=localhost,1433;Database=Movies;Persist Security Info=True;uid=sa;pwd=D1m1tr1s!;ConnectRetryCount=0";
var connection = @"Server=(LocalDb)\MSSQLLocalDB;Database=Movies;Persist Security Info=True";

services.AddDbContext<MoviesContext>(
options => options.UseSqlServer(connection));
Expand Down
2 changes: 1 addition & 1 deletion MoviesHubNew/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void ConfigureServices(IServiceCollection services)
options.MinimumSameSitePolicy = SameSiteMode.None;
});

var connection = @"Server=localhost,1433;Database=Movies;Persist Security Info=True;uid=sa;pwd=D1m1tr1s!;ConnectRetryCount=0";
var connection = @"Server=(LocalDb)\MSSQLLocalDB;Database=Movies;Persist Security Info=True";

services.AddDbContext<MoviesContext>(
options => options.UseSqlServer(connection));
Expand Down
2 changes: 1 addition & 1 deletion XUnitTestProject1/MoviesApi_IntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class MyFixture5

public MyFixture5()
{
var connection = @"Server=localhost,1433;Database=Movies;Persist Security Info=True;uid=sa;pwd=D1m1tr1s!;ConnectRetryCount=0";
var connection = @"Server=(LocalDb)\MSSQLLocalDB;Database=Movies;Persist Security Info=True";

container_ = new ServiceCollection()
.AddDbContext<MoviesContext>(options =>
Expand Down

0 comments on commit 49b23eb

Please sign in to comment.