// using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using WebVentaCoche.DataBase; #nullable disable namespace WebVentaCoche.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("20241216174709_DescriptionsProducts")] partial class DescriptionsProducts { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("WebVentaCoche.Models.Product", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("ImagePath") .HasColumnType("nvarchar(max)"); b.Property("LongDescription") .HasColumnType("nvarchar(max)"); b.Property("Name") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("ShortDescription") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Products"); }); #pragma warning restore 612, 618 } } }