1
0
mirror of synced 2025-02-25 14:34:49 +01:00

Move more to global using

This commit is contained in:
asesidaa 2022-09-01 22:56:39 +08:00
parent 9bde113558
commit 01cae7bc8b
8 changed files with 6 additions and 17 deletions

View File

@ -1,6 +1,4 @@
using Microsoft.EntityFrameworkCore; namespace TaikoLocalServer.Context
namespace TaikoLocalServer.Context
{ {
public partial class TaikoDbContext : DbContext public partial class TaikoDbContext : DbContext
{ {

View File

@ -1,6 +1,4 @@
using Microsoft.EntityFrameworkCore; namespace TaikoLocalServer.Context;
namespace TaikoLocalServer.Context;
public partial class TaikoDbContext public partial class TaikoDbContext
{ {

View File

@ -1,5 +1,4 @@
using System.Text.Json; using System.Text.Json;
using Microsoft.EntityFrameworkCore;
namespace TaikoLocalServer.Controllers; namespace TaikoLocalServer.Controllers;

View File

@ -1,6 +1,4 @@
using Swan.Mapping; namespace TaikoLocalServer.Controllers;
namespace TaikoLocalServer.Controllers;
[Route("/v12r03/chassis/getdanodai.php")] [Route("/v12r03/chassis/getdanodai.php")]
[ApiController] [ApiController]

View File

@ -1,7 +1,4 @@
using Microsoft.EntityFrameworkCore; namespace TaikoLocalServer.Controllers;
using Swan.Mapping;
namespace TaikoLocalServer.Controllers;
[Route("/v12r03/chassis/getdanscore.php")] [Route("/v12r03/chassis/getdanscore.php")]
[ApiController] [ApiController]

View File

@ -1,7 +1,5 @@
using System.Globalization; using System.Globalization;
using System.Text.Json; using System.Text.Json;
using Microsoft.EntityFrameworkCore;
using ProtoBuf;
namespace TaikoLocalServer.Controllers; namespace TaikoLocalServer.Controllers;

View File

@ -1,5 +1,7 @@
// Global using directives // Global using directives
global using Microsoft.AspNetCore.Mvc; global using Microsoft.AspNetCore.Mvc;
global using Microsoft.EntityFrameworkCore;
global using ProtoBuf;
global using Swan.Formatters; global using Swan.Formatters;
global using taiko.game; global using taiko.game;
global using TaikoLocalServer.Common; global using TaikoLocalServer.Common;

View File

@ -1,7 +1,6 @@
using System.Security.Authentication; using System.Security.Authentication;
using Microsoft.AspNetCore.HttpLogging; using Microsoft.AspNetCore.HttpLogging;
using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.EntityFrameworkCore;
using TaikoLocalServer.Middlewares; using TaikoLocalServer.Middlewares;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);