// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using RobotNet.RobotManager.Data; #nullable disable namespace RobotNet.RobotManager.Data.Migrations { [DbContext(typeof(RobotEditorDbContext))] partial class RobotEditorDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.4") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity("RobotNet.RobotManager.Data.Robot", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier") .HasColumnName("Id"); b.Property("ChargerNode") .HasColumnType("varchar(127)") .HasColumnName("ChargerNode"); b.Property("HomeNode") .HasColumnType("varchar(127)") .HasColumnName("HomeNode"); b.Property("MapId") .HasColumnType("uniqueidentifier") .HasColumnName("MapId"); b.Property("ModelId") .HasColumnType("uniqueidentifier") .HasColumnName("ModelId"); b.Property("Name") .IsRequired() .HasColumnType("varchar(127)") .HasColumnName("Name"); b.Property("RobotId") .IsRequired() .HasColumnType("varchar(127)") .HasColumnName("RobotId"); b.HasKey("Id"); b.HasIndex("ModelId"); b.ToTable("Robots"); }); modelBuilder.Entity("RobotNet.RobotManager.Data.RobotModel", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier") .HasColumnName("Id"); b.Property("ImageHeight") .HasColumnType("int") .HasColumnName("ImageHeight"); b.Property("ImageWidth") .HasColumnType("int") .HasColumnName("ImageWidth"); b.Property("Length") .HasColumnType("float") .HasColumnName("Length"); b.Property("ModelName") .IsRequired() .HasColumnType("varchar(127)") .HasColumnName("ModelName"); b.Property("NavigationType") .HasColumnType("int") .HasColumnName("NavigationType"); b.Property("OriginX") .HasColumnType("float") .HasColumnName("OriginX"); b.Property("OriginY") .HasColumnType("float") .HasColumnName("OriginY"); b.Property("Width") .HasColumnType("float") .HasColumnName("Width"); b.HasKey("Id"); b.ToTable("RobotModels"); }); modelBuilder.Entity("RobotNet.RobotManager.Data.Robot", b => { b.HasOne("RobotNet.RobotManager.Data.RobotModel", "Model") .WithMany("Robots") .HasForeignKey("ModelId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Model"); }); modelBuilder.Entity("RobotNet.RobotManager.Data.RobotModel", b => { b.Navigation("Robots"); }); #pragma warning restore 612, 618 } } }