Rename server project

This commit is contained in:
Pat Hartl 2024-08-04 18:44:33 -05:00
parent 9ba9887eb1
commit cb061e09c5
477 changed files with 515 additions and 625 deletions

View file

@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>0.8.0</Version>
<Version>0.9.0</Version>
</PropertyGroup>
<ItemGroup>

View file

@ -1,6 +1,6 @@
using LANCommander.Services;
using LANCommander.Server.Services;
namespace LANCommander
namespace LANCommander.Server
{
public class ApiMiddleware
{

View file

@ -4,7 +4,7 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace LANCommander.Areas.Identity.Pages.Account
namespace LANCommander.Server.Areas.Identity.Pages.Account
{
/// <summary>
/// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used

View file

@ -1,6 +1,6 @@
@page
@using LANCommander.Models;
@using LANCommander.Services;
@using LANCommander.Server.Models;
@using LANCommander.Server.Services;
@model FirstTimeSetupModel
@{
Layout = "/UI/Views/Shared/_LayoutBasic.cshtml";

View file

@ -12,7 +12,7 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.UI.Services;
using Microsoft.AspNetCore.Mvc;
@ -20,7 +20,7 @@ using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.WebUtilities;
using Microsoft.Extensions.Logging;
namespace LANCommander.Areas.Identity.Pages.Account
namespace LANCommander.Server.Areas.Identity.Pages.Account
{
public class FirstTimeSetupModel : PageModel
{

View file

@ -8,14 +8,14 @@ using System.Text;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.UI.Services;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.WebUtilities;
namespace LANCommander.Areas.Identity.Pages.Account
namespace LANCommander.Server.Areas.Identity.Pages.Account
{
public class ForgotPasswordModel : PageModel
{

View file

@ -1,6 +1,6 @@
@page
@using LANCommander.Models;
@using LANCommander.Services;
@using LANCommander.Server.Models;
@using LANCommander.Server.Services;
@model LoginModel
@{ Layout = "/UI/Views/Shared/_LayoutBasic.cshtml"; }

View file

@ -8,16 +8,16 @@ using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.UI.Services;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using LANCommander.Services;
using LANCommander.Server.Services;
namespace LANCommander.Areas.Identity.Pages.Account
namespace LANCommander.Server.Areas.Identity.Pages.Account
{
public class LoginModel : PageModel
{

View file

@ -5,13 +5,13 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace LANCommander.Areas.Identity.Pages.Account
namespace LANCommander.Server.Areas.Identity.Pages.Account
{
public class LogoutModel : PageModel
{

View file

@ -5,13 +5,13 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
namespace LANCommander.Areas.Identity.Pages.Account.Manage
namespace LANCommander.Server.Areas.Identity.Pages.Account.Manage
{
public class ChangePasswordModel : PageModel
{

View file

@ -6,12 +6,12 @@ using System;
using System.ComponentModel.DataAnnotations;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace LANCommander.Areas.Identity.Pages.Account.Manage
namespace LANCommander.Server.Areas.Identity.Pages.Account.Manage
{
public class IndexModel : PageModel
{

View file

@ -5,7 +5,7 @@
using System;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace LANCommander.Areas.Identity.Pages.Account.Manage
namespace LANCommander.Server.Areas.Identity.Pages.Account.Manage
{
/// <summary>
/// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used

View file

@ -5,12 +5,12 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace LANCommander.Areas.Identity.Pages.Account.Manage
namespace LANCommander.Server.Areas.Identity.Pages.Account.Manage
{
public class SetPasswordModel : PageModel
{

View file

@ -0,0 +1 @@
@using LANCommander.Server.Areas.Identity.Pages.Account.Manage

View file

@ -1,6 +1,6 @@
@page
@using LANCommander.Models;
@using LANCommander.Services;
@using LANCommander.Server.Models;
@using LANCommander.Server.Services;
@model RegisterModel
@{ Layout = "/UI/Views/Shared/_LayoutBasic.cshtml"; }
@{

View file

@ -12,16 +12,16 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.UI.Services;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.WebUtilities;
using Microsoft.Extensions.Logging;
using LANCommander.Services;
using LANCommander.Server.Services;
namespace LANCommander.Areas.Identity.Pages.Account
namespace LANCommander.Server.Areas.Identity.Pages.Account
{
public class RegisterModel : PageModel
{

View file

@ -7,13 +7,13 @@ using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.WebUtilities;
namespace LANCommander.Areas.Identity.Pages.Account
namespace LANCommander.Server.Areas.Identity.Pages.Account
{
public class ResetPasswordModel : PageModel
{

View file

@ -5,7 +5,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace LANCommander.Areas.Identity.Pages.Account
namespace LANCommander.Server.Areas.Identity.Pages.Account
{
/// <summary>
/// This API supports the ASP.NET Core Identity default UI infrastructure and is not intended to be used

View file

@ -0,0 +1 @@
@using LANCommander.Server.Areas.Identity.Pages.Account

View file

@ -0,0 +1,6 @@
@using Microsoft.AspNetCore.Identity
@using LANCommander.Server.Areas.Identity
@using LANCommander.Server.Areas.Identity.Pages
@using LANCommander.Server.Data.Models
@using LANCommander.Server.UI.Components
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View file

@ -1,6 +1,6 @@
using AutoMapper;
namespace LANCommander
namespace LANCommander.Server
{
public class AutoMapper : Profile
{

View file

@ -1,13 +1,13 @@
using LANCommander.Data;
using LANCommander.Data.Models;
using LANCommander.Extensions;
using LANCommander.Models;
using LANCommander.Services;
using LANCommander.Server.Data;
using LANCommander.Server.Data.Models;
using LANCommander.Server.Extensions;
using LANCommander.Server.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Authorize(AuthenticationSchemes = "Bearer")]
[Route("api/[controller]")]

View file

@ -1,6 +1,6 @@
using LANCommander.Data.Models;
using LANCommander.Models;
using LANCommander.Services;
using LANCommander.Server.Data.Models;
using LANCommander.Server.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
@ -11,7 +11,7 @@ using System.Security.Claims;
using System.Security.Cryptography;
using System.Text;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
public class TokenModel
{

View file

@ -1,13 +1,13 @@
using LANCommander.Data;
using LANCommander.Data.Models;
using LANCommander.Extensions;
using LANCommander.Models;
using LANCommander.Services;
using LANCommander.Server.Data;
using LANCommander.Server.Data.Models;
using LANCommander.Server.Extensions;
using LANCommander.Server.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Authorize(AuthenticationSchemes = "Bearer")]
[Route("api/[controller]")]

View file

@ -1,17 +1,17 @@
using AutoMapper;
using LANCommander.Data;
using LANCommander.Data.Enums;
using LANCommander.Data.Models;
using LANCommander.Extensions;
using LANCommander.Models;
using LANCommander.Services;
using LANCommander.Server.Data;
using LANCommander.Server.Data.Enums;
using LANCommander.Server.Data.Models;
using LANCommander.Server.Extensions;
using LANCommander.Server.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using ZiggyCreatures.Caching.Fusion;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Authorize(AuthenticationSchemes = "Bearer")]
[Route("api/[controller]")]

View file

@ -1,13 +1,13 @@
using AutoMapper;
using LANCommander.Data;
using LANCommander.Data.Models;
using LANCommander.Extensions;
using LANCommander.Server.Data;
using LANCommander.Server.Data.Models;
using LANCommander.Server.Extensions;
using LANCommander.Server.Services;
using LANCommander.SDK.Models;
using LANCommander.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Authorize(AuthenticationSchemes = "Bearer")]
[Route("api/[controller]")]

View file

@ -1,10 +1,10 @@
using LANCommander.SDK.Models;
using LANCommander.Services;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Semver;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Authorize(AuthenticationSchemes = "Bearer")]
[Route("api/[controller]")]

View file

@ -1,14 +1,14 @@
using AutoMapper;
using LANCommander.Data;
using LANCommander.Data.Models;
using LANCommander.Extensions;
using LANCommander.Models;
using LANCommander.Server.Data;
using LANCommander.Server.Data.Models;
using LANCommander.Server.Extensions;
using LANCommander.Server.Models;
using LANCommander.SDK;
using LANCommander.Services;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Authorize(AuthenticationSchemes = "Bearer")]
[Route("api/[controller]")]

View file

@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Mvc;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Route("api/[controller]")]
[ApiController]

View file

@ -1,12 +1,12 @@
using AutoMapper;
using LANCommander.Data.Models;
using LANCommander.Services;
using LANCommander.Server.Data.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Authorize(AuthenticationSchemes = "Bearer")]
[Route("api/[controller]")]

View file

@ -1,6 +1,6 @@
using LANCommander.Data.Models;
using LANCommander.Models;
using LANCommander.Services;
using LANCommander.Server.Data.Models;
using LANCommander.Server.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
@ -11,7 +11,7 @@ using System.Security.Claims;
using System.Security.Cryptography;
using System.Text;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Route("api/[controller]")]
[Authorize(AuthenticationSchemes = "Bearer")]

View file

@ -1,12 +1,12 @@
using AutoMapper;
using LANCommander.Data.Models;
using LANCommander.Extensions;
using LANCommander.Models;
using LANCommander.Services;
using LANCommander.Server.Data.Models;
using LANCommander.Server.Extensions;
using LANCommander.Server.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Authorize(AuthenticationSchemes = "Bearer")]
[Route("api/[controller]")]

View file

@ -1,16 +1,16 @@
using AutoMapper;
using LANCommander.Data;
using LANCommander.Data.Models;
using LANCommander.Extensions;
using LANCommander.Models;
using LANCommander.Services;
using LANCommander.Server.Data;
using LANCommander.Server.Data.Models;
using LANCommander.Server.Extensions;
using LANCommander.Server.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using System.Runtime.Intrinsics.X86;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Authorize(AuthenticationSchemes = "Bearer")]
[Route("api/[controller]")]

View file

@ -1,9 +1,9 @@
using AutoMapper;
using LANCommander.Services;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Authorize(AuthenticationSchemes = "Bearer")]
[Route("api/[controller]")]

View file

@ -1,9 +1,9 @@
using LANCommander.Models;
using LANCommander.Services;
using LANCommander.Server.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace LANCommander.Controllers.Api
namespace LANCommander.Server.Controllers.Api
{
[Route("api/[controller]")]
[ApiController]

View file

@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using System.Text.Json;
namespace LANCommander.Controllers
namespace LANCommander.Server.Controllers
{
public class BaseController : Controller
{

View file

@ -1,12 +1,12 @@
using LANCommander.Data;
using LANCommander.Extensions;
using LANCommander.Models;
using LANCommander.Services;
using LANCommander.Server.Data;
using LANCommander.Server.Extensions;
using LANCommander.Server.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace LANCommander.Controllers
namespace LANCommander.Server.Controllers
{
[Authorize]
public class DownloadController : Controller

View file

@ -1,10 +1,10 @@
using LANCommander.SDK.Helpers;
using LANCommander.Services;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.IO.Compression;
namespace LANCommander.Controllers
namespace LANCommander.Server.Controllers
{
[Authorize(Roles = "Administrator")]
public class GamesController : BaseController

View file

@ -1,11 +1,11 @@
using AutoMapper;
using LANCommander.SDK.Helpers;
using LANCommander.Services;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.IO.Compression;
namespace LANCommander.Controllers
namespace LANCommander.Server.Controllers
{
[Authorize(Roles = "Administrator")]
public class RedistributablesController : BaseController

View file

@ -1,10 +1,10 @@
using AutoMapper;
using LANCommander.SDK.Helpers;
using LANCommander.Services;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Mvc;
using System.IO.Compression;
namespace LANCommander.Controllers
namespace LANCommander.Server.Controllers
{
public class ServerController : Controller
{

View file

@ -1,11 +1,11 @@
using LANCommander.Models;
using LANCommander.Services;
using LANCommander.Server.Models;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using NLog;
namespace LANCommander.Controllers
namespace LANCommander.Server.Controllers
{
[Authorize(Roles = "Administrator")]
public class UploadController : Controller

View file

@ -1,10 +1,10 @@
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.Build.Framework;
using Microsoft.EntityFrameworkCore;
namespace LANCommander.Data
namespace LANCommander.Server.Data
{
public class DatabaseContext : IdentityDbContext<User, Role, Guid>
{
@ -33,7 +33,7 @@ namespace LANCommander.Data
builder.ConfigureBaseRelationships<Redistributable>();
builder.ConfigureBaseRelationships<SavePath>();
builder.ConfigureBaseRelationships<Script>();
builder.ConfigureBaseRelationships<Server>();
builder.ConfigureBaseRelationships<Data.Models.Server>();
builder.ConfigureBaseRelationships<ServerConsole>();
builder.ConfigureBaseRelationships<ServerHttpPath>();
builder.ConfigureBaseRelationships<Tag>();
@ -182,31 +182,31 @@ namespace LANCommander.Data
#endregion
#region Server Relationships
builder.Entity<Server>()
builder.Entity<Data.Models.Server>()
.HasOne(s => s.Game)
.WithMany(g => g.Servers)
.IsRequired(false)
.OnDelete(DeleteBehavior.SetNull);
builder.Entity<Server>()
builder.Entity<Data.Models.Server>()
.HasMany<ServerConsole>()
.WithOne(sl => sl.Server)
.IsRequired(true)
.OnDelete(DeleteBehavior.Cascade);
builder.Entity<Server>()
builder.Entity<Data.Models.Server>()
.HasMany<ServerHttpPath>()
.WithOne(s => s.Server)
.IsRequired(true)
.OnDelete(DeleteBehavior.Cascade);
builder.Entity<Server>()
builder.Entity<Data.Models.Server>()
.HasMany(s => s.Scripts)
.WithOne(s => s.Server)
.IsRequired(false)
.OnDelete(DeleteBehavior.Cascade);
builder.Entity<Server>()
builder.Entity<Data.Models.Server>()
.HasMany(s => s.Actions)
.WithOne(s => s.Server)
.IsRequired(false)
@ -266,7 +266,7 @@ namespace LANCommander.Data
public DbSet<PlaySession>? PlaySessions { get; set; }
public DbSet<Server>? Servers { get; set; }
public DbSet<Data.Models.Server>? Servers { get; set; }
public DbSet<ServerConsole>? ServerConsoles { get; set; }

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
namespace LANCommander.Data.Enums
namespace LANCommander.Server.Data.Enums
{
public enum GameType
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace LANCommander.Data.Enums
namespace LANCommander.Server.Data.Enums
{
public enum SavePathType
{

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
namespace LANCommander.Data.Enums
namespace LANCommander.Server.Data.Enums
{
public enum ScriptType
{

View file

@ -1,7 +1,7 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace LANCommander.Data.Enums
namespace LANCommander.Server.Data.Enums
{
public enum ServerAutostartMethod
{

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
namespace LANCommander.Data.Enums
namespace LANCommander.Server.Data.Enums
{
public enum ServerConsoleType
{

View file

@ -1,7 +1,7 @@
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.EntityFrameworkCore;
namespace LANCommander.Data
namespace LANCommander.Server.Data
{
public static class ModelBuilderExtensions
{

View file

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Actions")]
public class Action : BaseModel

View file

@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
public class Archive : BaseModel
{

View file

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
public abstract class BaseModel
{

View file

@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
public abstract class BaseTaxonomyModel : BaseModel
{

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Categories")]
public class Category : BaseTaxonomyModel

View file

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Collections")]
public class Collection : BaseTaxonomyModel

View file

@ -1,6 +1,6 @@
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
public class Company : BaseModel
{

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Engines")]
public class Engine : BaseTaxonomyModel

View file

@ -1,8 +1,8 @@
using LANCommander.Data.Enums;
using LANCommander.Server.Data.Enums;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Games")]
public class Game : BaseModel

View file

@ -1,8 +1,8 @@
using LANCommander.Services;
using LANCommander.Server.Services;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("GameSaves")]
public class GameSave : BaseModel

View file

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Genres")]
public class Genre : BaseTaxonomyModel

View file

@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Keys")]
public class Key : BaseModel

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Media")]
public class Media : BaseModel

View file

@ -1,9 +1,9 @@
using LANCommander.Data.Enums;
using LANCommander.Server.Data.Enums;
using LANCommander.SDK.Enums;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("MultiplayerModes")]
public class MultiplayerMode : BaseModel

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Platforms")]
public class Platform : BaseTaxonomyModel

View file

@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("PlaySessions")]
public class PlaySession : BaseModel

View file

@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Redistributables")]
public class Redistributable : BaseModel

View file

@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations.Schema;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Roles")]
public class Role : IdentityRole<Guid>

View file

@ -1,8 +1,8 @@
using LANCommander.Data.Enums;
using LANCommander.Server.Data.Enums;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("SavePaths")]
public class SavePath : BaseModel

View file

@ -1,9 +1,9 @@
using LANCommander.Data.Enums;
using LANCommander.Server.Data.Enums;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Scripts")]
public class Script : BaseModel

View file

@ -1,9 +1,9 @@
using LANCommander.Data.Enums;
using LANCommander.Server.Data.Enums;
using LANCommander.SDK.Enums;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
public class Server : BaseModel
{

View file

@ -1,8 +1,8 @@
using LANCommander.Data.Enums;
using LANCommander.Server.Data.Enums;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
public class ServerConsole : BaseModel
{

View file

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
public class ServerHttpPath : BaseModel
{

View file

@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Tags")]
public class Tag : BaseTaxonomyModel

View file

@ -1,10 +1,10 @@
using LANCommander.Services;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Data.Models
namespace LANCommander.Server.Data.Models
{
[Table("Users")]
public class User : IdentityUser<Guid>

View file

@ -1,8 +1,8 @@
using LANCommander.Data.Models;
using LANCommander.Server.Data.Models;
using Microsoft.EntityFrameworkCore;
using System.Linq.Expressions;
namespace LANCommander.Data
namespace LANCommander.Server.Data
{
public class Repository<T> : IDisposable where T : BaseModel
{

View file

@ -1,4 +1,4 @@
namespace LANCommander.Extensions
namespace LANCommander.Server.Extensions
{
public static class ArrayExtensions
{

View file

@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using System.Reflection;
namespace LANCommander.Extensions
namespace LANCommander.Server.Extensions
{
public static class EnumExtensions
{

View file

@ -1,4 +1,4 @@
namespace LANCommander.Extensions
namespace LANCommander.Server.Extensions
{
public static class FileExtensions
{

View file

@ -1,4 +1,4 @@
namespace LANCommander.Extensions
namespace LANCommander.Server.Extensions
{
public static class ListExtensions
{

View file

@ -1,6 +1,6 @@
using System.Text.RegularExpressions;
namespace LANCommander.Extensions
namespace LANCommander.Server.Extensions
{
public static class StringExtensions
{

View file

@ -2,7 +2,7 @@
using Microsoft.EntityFrameworkCore.Metadata.Conventions;
using System.IO.Compression;
namespace LANCommander.Extensions
namespace LANCommander.Server.Extensions
{
public static class ZipArchiveExtensions
{

View file

@ -1,8 +1,8 @@
using LANCommander.Services;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.SignalR;
using NLog;
namespace LANCommander.Hubs
namespace LANCommander.Server.Hubs
{
public class GameServerHub : Hub
{

View file

@ -1,8 +1,8 @@
using LANCommander.SDK;
using LANCommander.Services;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.SignalR;
namespace LANCommander.Hubs
namespace LANCommander.Server.Hubs
{
public class LoggingHub : Hub
{

View file

@ -1,7 +1,7 @@
using LANCommander.Services;
using LANCommander.Server.Services;
using Microsoft.AspNetCore.SignalR;
namespace LANCommander.Hubs
namespace LANCommander.Server.Hubs
{
public class ServerProcessHub : Hub
{

View file

@ -1,6 +1,6 @@
using LANCommander.Services;
using LANCommander.Server.Services;
namespace LANCommander.Jobs.Background
namespace LANCommander.Server.Jobs.Background
{
public class PatchArchiveBackgroundJob
{

Some files were not shown because too many files have changed in this diff Show more