| | |
| | | options.CheckConsentNeeded = context => true; |
| | | options.MinimumSameSitePolicy = SameSiteMode.None; |
| | | }); |
| | | services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); |
| | | |
| | | var connectionString = Configuration.GetConnectionString("DefaultConnection"); |
| | | services.AddDbContext<zhengcaioaContext>(options => |
| | | options.UseSqlServer(connectionString)); |
| | | options.UseSqlServer(connectionString)); |
| | | services.AddControllersWithViews(); |
| | | |
| | | services.AddScoped(typeof(ISimService), typeof(SimService)); |
| | | |
| | | services.AddScoped(typeof(IUserService), typeof(UserService)); |
| | | services.AddScoped(typeof(ILiaotianService), typeof(LiaotianService)); |
| | | services.AddScoped(typeof(IProjectService), typeof(ProjectService)); |