Skip to content

Commit

Permalink
remove all no need using
Browse files Browse the repository at this point in the history
去掉不必要的引用
  • Loading branch information
anjoy8 committed Jun 4, 2020
1 parent a924b22 commit 6819c3a
Show file tree
Hide file tree
Showing 117 changed files with 58 additions and 433 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[*.cs]

# IDE0005: Using 指令是不需要的。
dotnet_diagnostic.IDE0005.severity = warning
4 changes: 1 addition & 3 deletions Blog.Core.Common/DB/BaseDBConfig.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down
6 changes: 1 addition & 5 deletions Blog.Core.Common/DB/MainDb.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Core.Common.DB
namespace Blog.Core.Common.DB
{
public static class MainDb
{
Expand Down
5 changes: 1 addition & 4 deletions Blog.Core.Common/Helper/Appsettings.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace Blog.Core.Common
{
Expand Down
2 changes: 0 additions & 2 deletions Blog.Core.Common/Helper/ConsoleHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Core.Common.Helper
{
Expand Down
2 changes: 0 additions & 2 deletions Blog.Core.Common/Helper/DateHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Core.Common.Helper
{
Expand Down
2 changes: 0 additions & 2 deletions Blog.Core.Common/Helper/FileHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace Blog.Core.Common.Helper
Expand Down
5 changes: 1 addition & 4 deletions Blog.Core.Common/Helper/GetNetData.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using System.IO;
using System.Net;
using System.Text;

Expand Down
6 changes: 1 addition & 5 deletions Blog.Core.Common/Helper/HtmlHelper.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Core.Common.Helper
namespace Blog.Core.Common.Helper
{
public static class HtmlHelper
{
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Common/Helper/JsonHelper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Core.Common.Helper
{
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Common/Helper/MD5Hepler.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;

Expand Down
4 changes: 1 addition & 3 deletions Blog.Core.Common/Helper/RecursionHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Blog.Core.Common.Helper
{
Expand Down
4 changes: 0 additions & 4 deletions Blog.Core.Common/Helper/SerializeHelper.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.Common
{
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Common/Helper/StringHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Blog.Core.Common.Helper
{
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Common/Helper/UnicodeHelper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

Expand Down
3 changes: 0 additions & 3 deletions Blog.Core.Common/Helper/UtilConvert.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Blog.Core
{
/// <summary>
Expand Down
3 changes: 1 addition & 2 deletions Blog.Core.Common/HttpContextUser/AspNetUser.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Security.Claims;
Expand Down
2 changes: 0 additions & 2 deletions Blog.Core.Common/HttpRestSharp/HttpHelper.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace Blog.Core.Common.HttpRestSharp
{
Expand Down
2 changes: 0 additions & 2 deletions Blog.Core.Common/HttpRestSharp/IRestSharp.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Core.Common.HttpRestSharp
{
Expand Down
4 changes: 2 additions & 2 deletions Blog.Core.Common/HttpRestSharp/RestSharpClient.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using RestSharp;
using RestSharp.Authenticators;
using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Core.Common.HttpRestSharp
{
Expand Down Expand Up @@ -101,6 +99,7 @@ public IRestResponse Execute(IRestRequest request)
/// });
/// </remarks>
/// <returns></returns>
[Obsolete]
public RestRequestAsyncHandle ExecuteAsync(IRestRequest request, Action<IRestResponse> callback)
{
request.DateFormat = string.IsNullOrEmpty(request.DateFormat) ? DefaultDateParameterFormat : request.DateFormat;
Expand All @@ -126,6 +125,7 @@ public RestRequestAsyncHandle ExecuteAsync(IRestRequest request, Action<IRestRes
/// });
/// </remarks>
/// <returns></returns>
[Obsolete]
public RestRequestAsyncHandle ExecuteAsync<T>(IRestRequest request, Action<IRestResponse<T>> callback) where T : new()
{
request.DateFormat = string.IsNullOrEmpty(request.DateFormat) ? DefaultDateParameterFormat : request.DateFormat;
Expand Down
6 changes: 1 addition & 5 deletions Blog.Core.Common/Hubs/IChatClient.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using Blog.Core.Common.LogHelper;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Threading.Tasks;

namespace Blog.Core.Hubs
{
Expand Down
6 changes: 1 addition & 5 deletions Blog.Core.Common/LogHelper/LogLock.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using Blog.Core.Common.Helper;
using Blog.Core.Hubs;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.SignalR;
using Newtonsoft.Json;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
Expand Down
3 changes: 1 addition & 2 deletions Blog.Core.Common/LogHelper/RequestInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;

namespace Blog.Core.Common.LogHelper
{
Expand Down
3 changes: 1 addition & 2 deletions Blog.Core.Common/LogHelper/Seri/SerilogServer.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.Extensions.Logging;
using Serilog;
using Serilog;
using Serilog.Events;
using System;
using System.IO;
Expand Down
2 changes: 0 additions & 2 deletions Blog.Core.IRepository/BASE/IBaseRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IRepository.Base
Expand Down
6 changes: 0 additions & 6 deletions Blog.Core.IRepository/IAdvertisementRepository.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
using Blog.Core.IRepository.Base;
using Blog.Core.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IRepository
{
Expand Down
5 changes: 0 additions & 5 deletions Blog.Core.IRepository/IBlogArticleRepository.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using Blog.Core.IRepository.Base;
using Blog.Core.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IRepository
{
Expand Down
5 changes: 0 additions & 5 deletions Blog.Core.IRepository/IGuestbookRepository.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using Blog.Core.IRepository.Base;
using Blog.Core.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IRepository
{
Expand Down
5 changes: 0 additions & 5 deletions Blog.Core.IRepository/IPasswordLibRepository.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using Blog.Core.IRepository.Base;
using Blog.Core.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IRepository
{
Expand Down
5 changes: 0 additions & 5 deletions Blog.Core.IRepository/ITopicDetailRepository.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using Blog.Core.IRepository.Base;
using Blog.Core.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IRepository
{
Expand Down
5 changes: 0 additions & 5 deletions Blog.Core.IRepository/ITopicRepository.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using Blog.Core.IRepository.Base;
using Blog.Core.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IRepository
{
Expand Down
11 changes: 5 additions & 6 deletions Blog.Core.IRepository/IUserRoleRepository.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using System;
using Blog.Core.IRepository.Base;
using Blog.Core.Model.Models;

namespace Blog.Core.FrameWork.IRepository
{
/// <summary>
/// IUserRoleRepository
/// </summary>
public interface IUserRoleRepository : IBaseRepository<UserRole>//类名
{
/// <summary>
/// IUserRoleRepository
/// </summary>
public interface IUserRoleRepository : IBaseRepository<UserRole>//类名
{


Expand Down
1 change: 0 additions & 1 deletion Blog.Core.IServices/BASE/IBaseServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Collections.Generic;
using System.Data;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IServices.BASE
Expand Down
6 changes: 0 additions & 6 deletions Blog.Core.IServices/IAdvertisementServices.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
using Blog.Core.IServices.BASE;
using Blog.Core.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IServices
{
Expand Down
3 changes: 0 additions & 3 deletions Blog.Core.IServices/IBlogArticleServices.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using Blog.Core.IServices.BASE;
using Blog.Core.Model.Models;
using Blog.Core.Model.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IServices
Expand Down
5 changes: 0 additions & 5 deletions Blog.Core.IServices/IPasswordLibServices.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using Blog.Core.IServices.BASE;
using Blog.Core.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IServices
{
Expand Down
3 changes: 0 additions & 3 deletions Blog.Core.IServices/ITopicDetailServices.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using Blog.Core.IServices.BASE;
using Blog.Core.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IServices
Expand Down
3 changes: 0 additions & 3 deletions Blog.Core.IServices/ITopicServices.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using Blog.Core.IServices.BASE;
using Blog.Core.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IServices
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Core.Common.WebApiClients.HttpApis
namespace Blog.Core.Common.WebApiClients.HttpApis
{
public class Data
{
Expand Down
6 changes: 1 addition & 5 deletions Blog.Core.IServices/WebApiClients/DoubanApis/IDoubanApi.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using Blog.Core.Model;
using Blog.Core.Model.Models;
using Blog.Core.Model.ViewModels;
using System.ComponentModel.DataAnnotations;
using WebApiClient;
using WebApiClient;
using WebApiClient.Attributes;

namespace Blog.Core.Common.WebApiClients.HttpApis
Expand Down
4 changes: 1 addition & 3 deletions Blog.Core.Model/Love.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Blog.Core.Model
namespace Blog.Core.Model
{
/// <summary>
/// 这是爱
Expand Down
Loading

0 comments on commit 6819c3a

Please sign in to comment.