// This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddControllers();
     ///sqlsugarIOC
     #region
     services.AddSqlSugar(ioc: new IocConfig()
     {
         ConnectionString      = this.Configuration[key: "SqlConn"],
         DbType                = IocDbType.SqlServer,
         IsAutoCloseConnection = true//×Ô¶¯ÊÍ·Å
     });
     #endregion
     #region IOCÒÀÀµ×¢Èë
     services.AdCustomIOC();
     #endregion
 }