Skip to content

Commit 412452a

Browse files
committed
remove unused usings
1 parent cb749d4 commit 412452a

File tree

6 files changed

+6
-24
lines changed

6 files changed

+6
-24
lines changed

Diff for: Controllers/HomeController.cs

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
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;
1+
using System.Diagnostics;
72
using DotNetCoreSqlDb.Models;
3+
using Microsoft.AspNetCore.Mvc;
84

95
namespace DotNetCoreSqlDb.Controllers
106
{

Diff for: Controllers/TodosController.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
1+
using DotNetCoreSqlDb.Models;
52
using Microsoft.AspNetCore.Mvc;
6-
using Microsoft.AspNetCore.Mvc.Rendering;
73
using Microsoft.EntityFrameworkCore;
8-
using DotNetCoreSqlDb.Models;
94

105
namespace DotNetCoreSqlDb.Controllers
116
{

Diff for: Data/MyDatabaseContext.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
#nullable disable
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Threading.Tasks;
62
using Microsoft.EntityFrameworkCore;
73

84
namespace DotNetCoreSqlDb.Models

Diff for: Models/ErrorViewModel.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
31
namespace DotNetCoreSqlDb.Models
42
{
53
public class ErrorViewModel

Diff for: Models/Todo.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.ComponentModel.DataAnnotations;
1+
using System.ComponentModel.DataAnnotations;
32

43
namespace DotNetCoreSqlDb.Models
54
{

Diff for: Program.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
using Microsoft.EntityFrameworkCore;
2-
using Microsoft.Extensions.DependencyInjection;
3-
using DotNetCoreSqlDb.Models;
4-
using Microsoft.Extensions.Logging.AzureAppServices;
1+
using DotNetCoreSqlDb.Models;
2+
using Microsoft.EntityFrameworkCore;
53

64
var builder = WebApplication.CreateBuilder(args);
75

0 commit comments

Comments
 (0)