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.3 KiB

7 years ago
7 years ago
7 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Infrastructure;
  4. using Microsoft.EntityFrameworkCore.Metadata;
  5. using Microsoft.EntityFrameworkCore.Migrations;
  6. using Sample.Kafka;
  7. using DotNetCore.CAP.Infrastructure;
  8. namespace Sample.Kafka.Migrations
  9. {
  10. [DbContext(typeof(AppDbContext))]
  11. partial class AppDbContextModelSnapshot : ModelSnapshot
  12. {
  13. protected override void BuildModel(ModelBuilder modelBuilder)
  14. {
  15. modelBuilder
  16. .HasAnnotation("ProductVersion", "1.1.2")
  17. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  18. modelBuilder.Entity("DotNetCore.CAP.Infrastructure.ConsistencyMessage", b =>
  19. {
  20. b.Property<string>("Id")
  21. .ValueGeneratedOnAdd();
  22. b.Property<string>("Payload");
  23. b.Property<byte[]>("RowVersion")
  24. .IsConcurrencyToken();
  25. b.Property<DateTime>("SendTime");
  26. b.Property<int>("Status");
  27. b.Property<string>("Topic");
  28. b.Property<DateTime?>("UpdateTime");
  29. b.HasKey("Id");
  30. b.ToTable("Messages");
  31. });
  32. }
  33. }
  34. }