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.

AppDbContextModelSnapshot.cs 1.4 KiB

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