// using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Unbinder.DB; #nullable disable namespace Unbinder.Migrations { [DbContext(typeof(Initializer))] [Migration("20231201185549_update-table-names")] partial class updatetablenames { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("Unbinder.Models.Ingredient", b => { b.Property("IngredientId") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("IngredientId")); b.Property("Description") .HasColumnType("nvarchar(max)"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("IngredientId"); b.ToTable("Ingredients"); }); modelBuilder.Entity("Unbinder.Models.Recipe", b => { b.Property("RecipeId") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("RecipeId")); b.Property("Author") .HasColumnType("nvarchar(max)"); b.Property("ImageUrl") .HasColumnType("nvarchar(max)"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RecipeText") .HasColumnType("nvarchar(max)"); b.Property("ShortDescription") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("RecipeId"); b.ToTable("Recipes"); }); #pragma warning restore 612, 618 } } }