Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20191205032949_FirstMigration.Designer.cs 1.4 KiB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // <auto-generated />
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Infrastructure;
  4. using Microsoft.EntityFrameworkCore.Metadata;
  5. using Microsoft.EntityFrameworkCore.Migrations;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. using Sample.RabbitMQ.SqlServer;
  8. namespace Sample.RabbitMQ.SqlServer.Migrations
  9. {
  10. [DbContext(typeof(AppDbContext))]
  11. [Migration("20191205032949_FirstMigration")]
  12. partial class FirstMigration
  13. {
  14. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("ProductVersion", "3.0.0")
  19. .HasAnnotation("Relational:MaxIdentifierLength", 128)
  20. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  21. modelBuilder.Entity("Sample.RabbitMQ.SqlServer.Person", b =>
  22. {
  23. b.Property<int>("Id")
  24. .ValueGeneratedOnAdd()
  25. .HasColumnType("int")
  26. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  27. b.Property<string>("Name")
  28. .HasColumnType("nvarchar(max)");
  29. b.HasKey("Id");
  30. b.ToTable("Persons");
  31. });
  32. #pragma warning restore 612, 618
  33. }
  34. }
  35. }