File tree Expand file tree Collapse file tree 5 files changed +99
-0
lines changed
The Little ASP.NET Core Book/AspNetCoreTodo/AspNetCoreTodo Expand file tree Collapse file tree 5 files changed +99
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ // Use IntelliSense to find out which attributes exist for C# debugging
3
+ // Use hover for the description of the existing attributes
4
+ // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5
+ "version" : " 0.2.0" ,
6
+ "configurations" : [
7
+ {
8
+ "name" : " .NET Core Launch (web)" ,
9
+ "type" : " coreclr" ,
10
+ "request" : " launch" ,
11
+ "preLaunchTask" : " build" ,
12
+ // If you have changed target frameworks, make sure to update the program path.
13
+ "program" : " ${workspaceFolder}/bin/Debug/netcoreapp2.2/AspNetCoreTodo.dll" ,
14
+ "args" : [],
15
+ "cwd" : " ${workspaceFolder}" ,
16
+ "stopAtEntry" : false ,
17
+ "internalConsoleOptions" : " openOnSessionStart" ,
18
+ "launchBrowser" : {
19
+ "enabled" : true ,
20
+ "args" : " ${auto-detect-url}" ,
21
+ "windows" : {
22
+ "command" : " cmd.exe" ,
23
+ "args" : " /C start ${auto-detect-url}"
24
+ },
25
+ "osx" : {
26
+ "command" : " open"
27
+ },
28
+ "linux" : {
29
+ "command" : " xdg-open"
30
+ }
31
+ },
32
+ "env" : {
33
+ "ASPNETCORE_ENVIRONMENT" : " Development"
34
+ },
35
+ "sourceFileMap" : {
36
+ "/Views" : " ${workspaceFolder}/Views"
37
+ }
38
+ },
39
+ {
40
+ "name" : " .NET Core Attach" ,
41
+ "type" : " coreclr" ,
42
+ "request" : " attach" ,
43
+ "processId" : " ${command:pickProcess}"
44
+ }
45
+ , ]
46
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 2.0.0" ,
3
+ "tasks" : [
4
+ {
5
+ "label" : " build" ,
6
+ "command" : " dotnet" ,
7
+ "type" : " process" ,
8
+ "args" : [
9
+ " build" ,
10
+ " ${workspaceFolder}/AspNetCoreTodo.csproj"
11
+ ],
12
+ "problemMatcher" : " $msCompile"
13
+ }
14
+ ]
15
+ }
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Diagnostics ;
4
+ using System . Linq ;
5
+ using System . Threading . Tasks ;
6
+ using Microsoft . AspNetCore . Mvc ;
7
+ using AspNetCoreTodo . Models ;
8
+
9
+ public class TodoController : Controller
10
+ {
11
+
12
+ public IActionResult Index ( )
13
+ {
14
+ return Ok ( "TodoController" ) ;
15
+ }
16
+
17
+ }
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . ComponentModel . DataAnnotations ;
3
+
4
+ public class TodoItem
5
+ {
6
+
7
+ public Guid Id { get ; set ; }
8
+ public bool IsDone { get ; set ; }
9
+
10
+ [ Required ]
11
+ public string Title { get ; set ; }
12
+
13
+ public DateTimeOffset ? DueAt { get ; set ; }
14
+
15
+ }
Original file line number Diff line number Diff line change
1
+ using System ;
2
+
3
+ public class TodoViewModel
4
+ {
5
+ public TodoItem [ ] Items { get ; set ; }
6
+ }
You can’t perform that action at this time.
0 commit comments