1
0
mirror of synced 2024-11-27 16:10:53 +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
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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