Skip to content

Commit

Permalink
pass db context options from ioc into constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jul 9, 2024
1 parent 9989f13 commit 90a5ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/LcmCrdt/LcmCrdtDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace LcmCrdt;

public class LcmCrdtDbContext(IOptions<CrdtConfig> options): DbContext, ICrdtDbContext
public class LcmCrdtDbContext(DbContextOptions<LcmCrdtDbContext> dbContextOptions, IOptions<CrdtConfig> options): DbContext(dbContextOptions), ICrdtDbContext
{
public DbSet<ProjectData> ProjectData => Set<ProjectData>();

Expand Down

0 comments on commit 90a5ab8

Please sign in to comment.