/
stasnorman
/
builder-pattern
Обзор
Документация
Войти
/
stasnorman
/
builder-pattern
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
BuilderPatternAPI/Migrations/ProductDbContextModelSnapshot.cs
49 строк
2 KB
Stas Makievsky
example builder pattern
29 окт 2024, 01:07
29 окт 2024, 01:07
e52003e
Код
Авторство
О чём код?
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace BuilderPatternAPI.Migrations { [DbContext(typeof(ProductDbContext))] partial class ProductDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.10") .HasAnnotation("Relational:MaxIdentifierLength", 64); MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder); modelBuilder.Entity("BuilderPatternAPI.Models.Product", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id")); b.Property<string>("Category") .IsRequired() .HasColumnType("longtext"); b.Property<string>("Name") .IsRequired() .HasColumnType("longtext"); b.Property<decimal>("Price") .HasColumnType("decimal(65,30)"); b.HasKey("Id"); b.ToTable("Products"); }); #pragma warning restore 612, 618 } } }