CleanUp and added migration
This commit is contained in:
@@ -16,7 +16,7 @@ public class ApplicationDbContext : IdentityDbContext<ApplicationUser>, IApplica
|
||||
|
||||
public DbSet<TodoItem> TodoItems => Set<TodoItem>();
|
||||
|
||||
public DbSet<FuturCreator> FuturCreator => Set<FuturCreator>();
|
||||
public DbSet<FuturCreator> FuturCreators => Set<FuturCreator>();
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder builder)
|
||||
{
|
||||
|
||||
@@ -12,8 +12,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace Hutopy.Infrastructure.Data.Migrations
|
||||
{
|
||||
[DbContext(typeof(ApplicationDbContext))]
|
||||
[Migration("20240317201728_AddFuturCreator")]
|
||||
partial class AddFuturCreator
|
||||
[Migration("20240317201728_AddFuturCreators")]
|
||||
partial class AddfuturCreators
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -25,7 +25,7 @@ namespace Hutopy.Infrastructure.Data.Migrations
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("FuturCreator", b =>
|
||||
modelBuilder.Entity("FuturCreators", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -71,7 +71,7 @@ namespace Hutopy.Infrastructure.Data.Migrations
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("FuturCreator");
|
||||
b.ToTable("FuturCreators");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Hutopy.Domain.Entities.TodoItem", b =>
|
||||
|
||||
@@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
namespace Hutopy.Infrastructure.Data.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddFuturCreator : Migration
|
||||
public partial class AddFuturCreators : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
@@ -48,7 +48,7 @@ namespace Hutopy.Infrastructure.Data.Migrations
|
||||
oldMaxLength: 128);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "FuturCreator",
|
||||
name: "FuturCreators",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
@@ -66,7 +66,7 @@ namespace Hutopy.Infrastructure.Data.Migrations
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_FuturCreator", x => x.Id);
|
||||
table.PrimaryKey("PK_FuturCreators", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace Hutopy.Infrastructure.Data.Migrations
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "FuturCreator");
|
||||
name: "FuturCreators");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Name",
|
||||
|
||||
Reference in New Issue
Block a user