| | |
| | | options.CheckConsentNeeded = context => true; |
| | | options.MinimumSameSitePolicy = SameSiteMode.None; |
| | | }); |
| | | services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); |
| | | |
| | | var connectionString = Configuration.GetConnectionString("DefaultConnection"); |
| | | services.AddDbContext<zhengcaioaContext>(options => |
| | |
| | | services.AddScoped(typeof(IFiBookService), typeof(FiBookService)); |
| | | |
| | | services.AddScoped(typeof(IAdmAttendanceRuleService), typeof(AdmAttendanceRuleService)); |
| | | |
| | | |
| | | services.AddScoped(typeof(IAdmAttendanceDtlService), typeof(AdmAttendanceDtlService)); |
| | | services.AddScoped(typeof(IAdmAttendanceService), typeof(AdmAttendanceService)); |
| | | |
| | | |
| | | services.AddAutoMapper(typeof(AutoMapperConfigs)); |
| | | services.AddUEditorService("ueditor.json", true, "wwwroot"); |