You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 rivejä
1.4 KiB

  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. }