10 lines
257 B
C#
10 lines
257 B
C#
|
private static ServiceProvider ConfigureServices()
|
||
|
{
|
||
|
return new ServiceCollection()
|
||
|
.AddDbContext<ApplicationDbContext>(
|
||
|
options => options.UseNpgsql("Your connection string")
|
||
|
)
|
||
|
[...]
|
||
|
.BuildServiceProvider();
|
||
|
}
|