1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- // <auto-generated />
- using System;
- using EVCB_OCPP.Domain;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Infrastructure;
- using Microsoft.EntityFrameworkCore.Metadata;
- using Microsoft.EntityFrameworkCore.Migrations;
- using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
- #nullable disable
- namespace EVCB_OCPP.Domain.Migrations.MeterValueDB
- {
- [DbContext(typeof(MeterValueDBContext))]
- [Migration("20231019091245_InitialCreate")]
- partial class InitialCreate
- {
- /// <inheritdoc />
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
- #pragma warning disable 612, 618
- modelBuilder
- .UseCollation("Chinese_Taiwan_Stroke_CI_AS")
- .HasAnnotation("ProductVersion", "7.0.12")
- .HasAnnotation("Relational:MaxIdentifierLength", 128);
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
- modelBuilder.Entity("EVCB_OCPP.Domain.Models.MeterValueDb.ConnectorMeterValueRecord", b =>
- {
- b.Property<string>("ChargeBoxId")
- .HasMaxLength(50)
- .HasColumnType("nvarchar(50)");
- b.Property<byte>("ConnectorId")
- .HasColumnType("tinyint");
- b.Property<int>("ContextId")
- .HasColumnType("int");
- b.Property<DateTime>("CreatedOn")
- .HasColumnType("smalldatetime");
- b.Property<int>("FormatId")
- .HasColumnType("int");
- b.Property<long>("Id")
- .HasColumnType("bigint");
- b.Property<int>("LocationId")
- .HasColumnType("int");
- b.Property<int>("MeasurandId")
- .HasColumnType("int");
- b.Property<int>("PhaseId")
- .HasColumnType("int");
- b.Property<int>("TransactionId")
- .HasColumnType("int");
- b.Property<int>("UnitId")
- .HasColumnType("int");
- b.Property<string>("Value")
- .HasMaxLength(10)
- .HasColumnType("nvarchar(10)");
- b.ToTable("ConnectorMeterValueRecord", (string)null);
- });
- #pragma warning restore 612, 618
- }
- }
- }
|