Remove previous [Module]DbContextFactory.cs

This commit is contained in:
David Montesinos 2024-03-12 11:40:21 +01:00 committed by GitHub
parent 75a6111a9b
commit 68e3bcba05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,25 +0,0 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Oqtane.Infrastructure;
namespace [Owner].Module.[Module].Repository
{
public class [Module]DbContextFactory : IServerStartup
{
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
// not implemented
}
public void ConfigureMvc(IMvcBuilder mvcBuilder)
{
// not implemented
}
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContextFactory<[Module]Context>(opt => { }, ServiceLifetime.Transient);
}
}
}