Skip to content

Commit 11392b0

Browse files
committed
reverted database to in memory sql
1 parent e6a3324 commit 11392b0

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*.user
1010
*.userosscache
1111
*.sln.docstates
12-
*.sqlite
1312

1413
# User-specific files (MonoDevelop/Xamarin Studio)
1514
*.userprefs

Blazorcrud.Server/Blazorcrud.Server.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageReference Include="Bogus" Version="35.6.0" />
1414
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.0" />
1515
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />
16-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.0" />
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.0" />
1717
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.0.0" />
1818
<PackageReference Include="Quartz.Extensions.Hosting" Version="3.13.0" />
1919
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />

Blazorcrud.Server/Program.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// Add services to the container.
1313
builder.Services.AddControllersWithViews();
1414
builder.Services.AddRazorPages();
15-
builder.Services.AddDbContext<AppDbContext>(opt => opt.UseSqlite("Filename=./BlazorServerCRUD.sqlite"));
15+
builder.Services.AddDbContext<AppDbContext>(opt => opt.UseInMemoryDatabase("BlazorServerCRUD"));
1616
builder.Services.AddScoped<IPersonRepository, PersonRepository>();
1717
builder.Services.AddScoped<IUploadRepository, UploadRepository>();
1818
builder.Services.AddScoped<IUserRepository, UserRepository>();
@@ -36,7 +36,6 @@
3636

3737
builder.Services.AddQuartz(q =>
3838
{
39-
// q.UseMicrosoftDependencyInjectionJobFactory();
4039
q.AddJobAndTrigger<UploadProcessorJob>(builder.Configuration);
4140
});
4241
builder.Services.AddQuartzHostedService(

0 commit comments

Comments
 (0)