One of the last major cleanups. All NadekoBot.Core.* namespaces renamed to NadekoBot.*

This commit is contained in:
Kwoth
2021-06-20 13:03:00 +02:00
parent 44fdd4ff23
commit 49f9b96755
451 changed files with 19253 additions and 19287 deletions

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Db
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using LinqToDB;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Db
{

View File

@@ -1,6 +1,6 @@
using System.Linq;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Db
{

View File

@@ -3,7 +3,7 @@ using System.Linq;
using Microsoft.EntityFrameworkCore;
using Discord;
using System.Collections.Generic;
using NadekoBot.Core.Services.Database;
using NadekoBot.Services.Database;
namespace NadekoBot.Db
{

View File

@@ -1,9 +1,9 @@
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using System;
using NadekoBot.Core.Services.Database;
using NadekoBot.Services.Database;
using NadekoBot.Db.Models;
namespace NadekoBot.Db

View File

@@ -1,6 +1,6 @@
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Db
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Db
{

View File

@@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Core.Services.Database;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
namespace NadekoBot.Db

View File

@@ -1,4 +1,4 @@
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

View File

@@ -1,4 +1,4 @@
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.Linq;

View File

@@ -1,4 +1,4 @@
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;

View File

@@ -2,8 +2,8 @@
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using LinqToDB;
using NadekoBot.Core.Services.Database;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Db
{

View File

@@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Core.Services.Database;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db.Models;
namespace NadekoBot.Db

View File

@@ -1,4 +1,4 @@
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
using Microsoft.EntityFrameworkCore;
using System.Linq;
using System.Threading.Tasks;

View File

@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class AntiRaidSetting : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class AutoCommand : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class BanTemplate : DbEntity
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class BlacklistEntry : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Db.Models
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class CommandAlias : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class CommandCooldown : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class CurrencyTransaction : DbEntity
{

View File

@@ -3,7 +3,7 @@ using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.RegularExpressions;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class CustomReaction : DbEntity
{

View File

@@ -1,7 +1,7 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class DelMsgOnCmdChannel : DbEntity
{

View File

@@ -1,6 +1,6 @@
using Discord;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class DiscordPermOverride : DbEntity
{

View File

@@ -1,5 +1,5 @@
using System;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Db.Models
{

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class CurrencyEvent
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class FeedSub : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class FilterChannelId : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class FilterLinksChannelId : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class FilteredWord : DbEntity
{

View File

@@ -1,5 +1,5 @@
using System;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Services.Database.Models;
using NadekoBot.Modules.Searches.Common;
namespace NadekoBot.Db.Models

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class GCChannelId : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class GroupName : DbEntity
{

View File

@@ -3,7 +3,7 @@ using NadekoBot.Common.Collections;
using System.Collections.Generic;
using NadekoBot.Db.Models;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class GuildConfig : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class IgnoredLogChannel : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class IgnoredVoicePresenceChannel : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class LogSetting : DbEntity

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class MusicPlaylist : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class MusicPlayerSettings
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class MutedUserId : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class NsfwBlacklitedTag : DbEntity
{

View File

@@ -2,7 +2,7 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
[DebuggerDisplay("{global::NadekoBot.Modules.Permissions.PermissionExtensions.GetCommand(this)}", Target = typeof(Permission))]
public class Permission : DbEntity

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class PlantedCurrency : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class PlaylistSong : DbEntity
{

View File

@@ -1,7 +1,7 @@
using NadekoBot.Common.Collections;
using System.Collections.Generic;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class Poll : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class PollVote : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class Quote : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class ReactionRoleMessage : DbEntity, IIndexed
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class Reminder : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class Repeater
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class RewardedUser : DbEntity
{

View File

@@ -1,6 +1,6 @@
using Discord;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class RotatingPlayingStatus : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class SelfAssignedRole : DbEntity
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public enum ShopEntryType
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class SlowmodeIgnoredRole : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class SlowmodeIgnoredUser : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
/// <summary>
/// Used to set stakes for gambling games which don't reward right away -

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class StreamRoleSettings : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class UnbanTimer : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class UnmuteTimer : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class UnroleTimer : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class UserXpStats : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class VcRoleInfo : DbEntity
{

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Db.Models;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class WaifuInfo : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class WaifuItem : DbEntity
{

View File

@@ -1,6 +1,6 @@
using NadekoBot.Db.Models;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class WaifuUpdate : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public enum WarnExpireAction
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class Warning : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class WarningPunishment : DbEntity
{

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class XpSettings : DbEntity
{

View File

@@ -1,4 +1,4 @@
namespace NadekoBot.Core.Services.Database.Models
namespace NadekoBot.Services.Database.Models
{
public class YtFollowedChannel : DbEntity
{

View File

@@ -1,14 +1,14 @@
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using NadekoBot.Core.Services.Database.Models;
using NadekoBot.Core.Services.Impl;
using NadekoBot.Services.Database.Models;
using NadekoBot.Services;
using System;
using System.IO;
using Microsoft.Extensions.Logging;
using NadekoBot.Db.Models;
namespace NadekoBot.Core.Services.Database
namespace NadekoBot.Services.Database
{
public class NadekoContextFactory : IDesignTimeDbContextFactory<NadekoContext>
{