Skip to content

Commit 39edcd8

Browse files
committed
Update ServiceExtensions.cs
DB Connection string changed
1 parent eec9cb1 commit 39edcd8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Supermarket/Extensions/ServiceExtensions.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@
99
using Microsoft.Extensions.Configuration;
1010
using Microsoft.Extensions.DependencyInjection;
1111
using Microsoft.IdentityModel.Tokens;
12+
using Supermarket.Core.Context;
13+
using Supermarket.Core.Models;
14+
using Supermarket.Core.Repositories;
15+
using Supermarket.Core.Repositories.Contracts;
1216
using Supermarket.Domain.Services;
1317
using Supermarket.Domain.Services.Contracts;
14-
using Supermarket.Identity.Context;
15-
using Supermarket.Identity.Models;
16-
using Supermarket.Persistent.Context;
17-
using Supermarket.Persistent.Contracts;
18-
using Supermarket.Persistent.Repositories;
1918
using Supermarket.Swagger;
2019
using Swashbuckle.AspNetCore.Swagger;
2120
using System;
@@ -48,7 +47,7 @@ public static void ConfigureMSSQLContext(this IServiceCollection services, IConf
4847
{
4948
services.AddDbContext<AuthenticationContext>(options =>
5049
{
51-
options.UseSqlServer(configuration.GetConnectionString("IdentityConnectionString"));
50+
options.UseSqlServer(configuration.GetConnectionString("SupermarketConnectionString"));
5251
});
5352

5453
services.AddDbContext<RepositoryContext>(options =>

0 commit comments

Comments
 (0)