31 lines
920 B
C#
31 lines
920 B
C#
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using StartupModules;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Yi.Framework.Core.Attributes;
|
|
using Yi.Framework.Core.Sqlsugar;
|
|
using Yi.Framework.Domain;
|
|
using Yi.Framework.Domain.Student.IRepository;
|
|
using Yi.Framework.Sqlsugar.Student;
|
|
|
|
namespace Yi.Framework.Sqlsugar
|
|
{
|
|
[DependsOn(typeof(YiFrameworkCoreSqlsugarModule),
|
|
typeof(YiFrameworkDomainModule))]
|
|
public class YiFrameworkSqlsugarModule : IStartupModule
|
|
{
|
|
public void Configure(IApplicationBuilder app, ConfigureMiddlewareContext context)
|
|
{
|
|
}
|
|
|
|
public void ConfigureServices(IServiceCollection services, ConfigureServicesContext context)
|
|
{
|
|
services.AddTransient<IStudentRepository, StudentRepository>();
|
|
}
|
|
}
|
|
}
|