[reputation] Use file-scoped namespaces.

This commit is contained in:
West14
2022-02-14 10:21:35 +02:00
parent d3ec6cfb4b
commit 05778f7960
3 changed files with 52 additions and 55 deletions
@@ -2,10 +2,10 @@
#nullable disable
namespace West.TelegramBot.Reputation.Migrations
namespace West.TelegramBot.Reputation.Migrations;
public partial class Initial : Migration
{
public partial class Initial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterDatabase()
@@ -36,5 +36,4 @@ namespace West.TelegramBot.Reputation.Migrations
migrationBuilder.DropTable(
name: "UserReputation");
}
}
}
@@ -5,11 +5,11 @@ using West.TelegramBot.Reputation.Data;
#nullable disable
namespace West.TelegramBot.Reputation.Migrations
namespace West.TelegramBot.Reputation.Migrations;
[DbContext(typeof(ReputationContext))]
partial class ReputationContextModelSnapshot : ModelSnapshot
{
[DbContext(typeof(ReputationContext))]
partial class ReputationContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
@@ -36,5 +36,4 @@ namespace West.TelegramBot.Reputation.Migrations
});
#pragma warning restore 612, 618
}
}
}
+3 -4
View File
@@ -6,10 +6,10 @@ using Microsoft.Extensions.DependencyInjection;
using West.TelegramBot.Reputation.Data;
using West.TelegramBot.Reputation.Service;
namespace West.TelegramBot.Reputation
namespace West.TelegramBot.Reputation;
public class Reputation : Module
{
public class Reputation : Module
{
public Reputation(Core core) : base(core)
{
}
@@ -21,5 +21,4 @@ namespace West.TelegramBot.Reputation
services.AddScoped<IReputation, ReputationService>();
}
}
}