mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[reputation] Use file-scoped namespaces.
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
#nullable disable
|
#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)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.AlterDatabase()
|
migrationBuilder.AlterDatabase()
|
||||||
@@ -36,5 +36,4 @@ namespace West.TelegramBot.Reputation.Migrations
|
|||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "UserReputation");
|
name: "UserReputation");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -5,11 +5,11 @@ using West.TelegramBot.Reputation.Data;
|
|||||||
|
|
||||||
#nullable disable
|
#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)
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
#pragma warning disable 612, 618
|
#pragma warning disable 612, 618
|
||||||
@@ -36,5 +36,4 @@ namespace West.TelegramBot.Reputation.Migrations
|
|||||||
});
|
});
|
||||||
#pragma warning restore 612, 618
|
#pragma warning restore 612, 618
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -6,10 +6,10 @@ using Microsoft.Extensions.DependencyInjection;
|
|||||||
using West.TelegramBot.Reputation.Data;
|
using West.TelegramBot.Reputation.Data;
|
||||||
using West.TelegramBot.Reputation.Service;
|
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)
|
public Reputation(Core core) : base(core)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -21,5 +21,4 @@ namespace West.TelegramBot.Reputation
|
|||||||
|
|
||||||
services.AddScoped<IReputation, ReputationService>();
|
services.AddScoped<IReputation, ReputationService>();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user