Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit a1ef903

Browse files
refactor: revert unnecessary API changes
1 parent fad274a commit a1ef903

File tree

4 files changed

+0
-46
lines changed

4 files changed

+0
-46
lines changed

src/ServiceLayer.API/Data/DesignTimeDbContextFactory.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/ServiceLayer.API/Data/ServiceLayerDBContext.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/ServiceLayer.API/Program.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
using Azure.Identity;
22
using Azure.Messaging.EventGrid;
3-
using Microsoft.EntityFrameworkCore;
43
using Microsoft.Extensions.DependencyInjection;
54
using Microsoft.Extensions.Hosting;
6-
using ServiceLayer.API.Data;
75

86
var eventGridTopicUrl = Environment.GetEnvironmentVariable("EVENT_GRID_TOPIC_URL")
97
?? throw new InvalidOperationException($"Environment variable 'EVENT_GRID_TOPIC_URL' is not set or is empty.");
108
var eventGridTopicKey = Environment.GetEnvironmentVariable("EVENT_GRID_TOPIC_KEY")
119
?? throw new InvalidOperationException($"Environment variable 'EVENT_GRID_TOPIC_KEY' is not set or is empty.");
12-
var databaseConnectionString = Environment.GetEnvironmentVariable("DatabaseConnectionString")
13-
?? throw new InvalidOperationException($"Environment variable 'DatabaseConnectionString' is not set or is empty.");
14-
1510

1611
var host = new HostBuilder()
1712
.ConfigureFunctionsWebApplication()
@@ -28,11 +23,6 @@
2823

2924
return new EventGridPublisherClient(endpoint, new ManagedIdentityCredential());
3025
});
31-
services.AddDbContext<ServiceLayerDbContext>(options =>
32-
{
33-
options.UseSqlServer(databaseConnectionString);
34-
});
35-
services.AddLogging();
3626
})
3727
.Build();
3828

src/ServiceLayer.API/ServiceLayer.API.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.3.0" />
1515
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.0.1" />
1616
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.2" />
17-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.1" />
18-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.1" />
19-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.1" />
2017
</ItemGroup>
2118
<ItemGroup>
2219
<None Update="host.json">

0 commit comments

Comments
 (0)