MeterValueDBContextModelSnapshot.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // <auto-generated />
  2. using System;
  3. using EVCB_OCPP.Domain;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. #nullable disable
  9. namespace EVCB_OCPP.Domain.Migrations.MeterValueDB
  10. {
  11. [DbContext(typeof(MeterValueDBContext))]
  12. partial class MeterValueDBContextModelSnapshot : ModelSnapshot
  13. {
  14. protected override void BuildModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .UseCollation("Chinese_Taiwan_Stroke_CI_AS")
  19. .HasAnnotation("ProductVersion", "7.0.12")
  20. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  21. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
  22. modelBuilder.Entity("EVCB_OCPP.Domain.Models.MeterValueDb.ConnectorMeterValueRecord", b =>
  23. {
  24. b.Property<string>("ChargeBoxId")
  25. .HasMaxLength(50)
  26. .HasColumnType("nvarchar(50)");
  27. b.Property<byte>("ConnectorId")
  28. .HasColumnType("tinyint");
  29. b.Property<int>("ContextId")
  30. .HasColumnType("int");
  31. b.Property<DateTime>("CreatedOn")
  32. .HasColumnType("smalldatetime");
  33. b.Property<int>("FormatId")
  34. .HasColumnType("int");
  35. b.Property<long>("Id")
  36. .HasColumnType("bigint");
  37. b.Property<int>("LocationId")
  38. .HasColumnType("int");
  39. b.Property<int>("MeasurandId")
  40. .HasColumnType("int");
  41. b.Property<int>("PhaseId")
  42. .HasColumnType("int");
  43. b.Property<int>("TransactionId")
  44. .HasColumnType("int");
  45. b.Property<int>("UnitId")
  46. .HasColumnType("int");
  47. b.Property<string>("Value")
  48. .HasMaxLength(10)
  49. .HasColumnType("nvarchar(10)");
  50. b.ToTable("ConnectorMeterValueRecord", (string)null);
  51. });
  52. #pragma warning restore 612, 618
  53. }
  54. }
  55. }