This commit is contained in:
MaxchilKH 2020-07-11 14:02:47 +02:00
parent 0e2529594f
commit c0fa6e2e35
4 changed files with 33 additions and 9 deletions

34
.vscode/tasks.json vendored
View File

@ -1,6 +1,36 @@
{ {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/InternshipSystem.Api/InternshipSystem.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"--project",
"${workspaceFolder}/src/InternshipSystem.Api/InternshipSystem.Api.csproj",
"run",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{ {
"label": "build: api", "label": "build: api",
"type": "docker-build", "type": "docker-build",
@ -36,10 +66,6 @@
"down: api", "down: api",
"build: api" "build: api"
], ],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [] "problemMatcher": []
}, },
{ {

View File

@ -1,5 +1,5 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Internship.Repository; using InternshipSystem.Repository;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace Internship.Api.Controller namespace Internship.Api.Controller

View File

@ -1,7 +1,6 @@
using System; using System;
using System.IO; using System.IO;
using System.Reflection; using System.Reflection;
using Internship.Repository;
using InternshipSystem.Repository; using InternshipSystem.Repository;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
@ -30,7 +29,7 @@ namespace InternshipSystem.Api
var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile); var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
options.IncludeXmlComments(xmlPath); options.IncludeXmlComments(xmlPath);
}) })
.AddSingleton<DatabaseFiller>() .AddScoped<DatabaseFiller>()
.AddControllers() .AddControllers()
; ;

View File

@ -1,9 +1,8 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
using InternshipSystem.Core; using InternshipSystem.Core;
using InternshipSystem.Repository;
namespace Internship.Repository namespace InternshipSystem.Repository
{ {
public class DatabaseFiller public class DatabaseFiller
{ {