React to EF API changes
This commit is contained in:
parent
2edc77cd9b
commit
4e7110e442
|
|
@ -10,7 +10,7 @@ namespace ChatSample.Data
|
|||
{
|
||||
public class ApplicationDbContextFactory : IDesignTimeDbContextFactory<ApplicationDbContext>
|
||||
{
|
||||
public ApplicationDbContext Create(string[] args)
|
||||
public ApplicationDbContext CreateDbContext(string[] args)
|
||||
{
|
||||
var configurationBuilder = new ConfigurationBuilder()
|
||||
.SetBasePath(Path.Combine(Directory.GetCurrentDirectory()))
|
||||
|
|
@ -22,4 +22,4 @@ namespace ChatSample.Data
|
|||
return new ApplicationDbContext(optionsBuilder.Options);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue