Skip to content

Commit

Permalink
feat(models): add DbContext pooling
Browse files Browse the repository at this point in the history
  • Loading branch information
nanotaboada committed Apr 19, 2024
1 parent 4fa5795 commit 838c230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dotnet.Samples.AspNetCore.WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
var dataSource =
$"{AppDomain.CurrentDomain.SetupInformation.ApplicationBase}/Data/players-sqlite3.db";

builder.Services.AddDbContext<PlayerContext>(options =>
builder.Services.AddDbContextPool<PlayerContext>(options =>
options.UseSqlite($"Data Source={dataSource}")
);

Expand Down

0 comments on commit 838c230

Please sign in to comment.