You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
512 B
C#
20 lines
512 B
C#
using Ds.Module.AppStartup;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace DS.Module.SqlSugar
|
|
{
|
|
[DsStartup(7)]
|
|
public class SqlSugarAppStartup : IDynamicStartup
|
|
{
|
|
public void Configure(WebApplication app)
|
|
{
|
|
}
|
|
|
|
public void ConfigureServices(WebApplicationBuilder builder)
|
|
{
|
|
builder.Services.AddScoped(typeof(DsDataAppService<>));
|
|
builder.Services.AddSqlsugarInstall();
|
|
}
|
|
}
|
|
} |