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.
 
 
 

68 lines
2.0 KiB

  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. namespace Sample.Kafka.Migrations
  8. {
  9. [DbContext(typeof(AppDbContext))]
  10. [Migration("20170624095008_CreateDatabase")]
  11. partial class CreateDatabase
  12. {
  13. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  14. {
  15. modelBuilder
  16. .HasAnnotation("ProductVersion", "1.1.2")
  17. .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
  18. modelBuilder.Entity("DotNetCore.CAP.Infrastructure.CapReceivedMessage", b =>
  19. {
  20. b.Property<string>("Id")
  21. .ValueGeneratedOnAdd();
  22. b.Property<DateTime>("Added");
  23. b.Property<string>("Content");
  24. b.Property<string>("KeyName");
  25. b.Property<DateTime>("LastRun");
  26. b.Property<int>("Retries");
  27. b.Property<string>("StateName")
  28. .HasMaxLength(50);
  29. b.HasKey("Id");
  30. b.ToTable("ReceivedMessages");
  31. });
  32. modelBuilder.Entity("DotNetCore.CAP.Infrastructure.CapSentMessage", b =>
  33. {
  34. b.Property<string>("Id")
  35. .ValueGeneratedOnAdd();
  36. b.Property<DateTime>("Added");
  37. b.Property<string>("Content");
  38. b.Property<string>("KeyName");
  39. b.Property<DateTime>("LastRun");
  40. b.Property<int>("Retries");
  41. b.Property<string>("StateName")
  42. .HasMaxLength(50);
  43. b.HasKey("Id");
  44. b.ToTable("SentMessages");
  45. });
  46. }
  47. }
  48. }