// using System; using LINGYUN.ApiGateway.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Volo.Abp.EntityFrameworkCore; namespace LINGYUN.ApiGateway.HttpApi.Host.Migrations { [DbContext(typeof(HttpApiHostMigrationsDbContext))] partial class HttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql) .HasAnnotation("ProductVersion", "3.1.7") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.AggregateReRoute", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("Aggregator") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("AppId") .IsRequired() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnName("ConcurrencyStamp") .HasColumnType("varchar(40) CHARACTER SET utf8mb4") .HasMaxLength(40); b.Property("ExtraProperties") .HasColumnName("ExtraProperties") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("Name") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("Priority") .HasColumnType("int"); b.Property("ReRouteId") .HasColumnType("bigint"); b.Property("ReRouteIsCaseSensitive") .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(false); b.Property("ReRouteKeys") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("UpstreamHost") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("UpstreamHttpMethod") .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("UpstreamPathTemplate") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.HasKey("Id"); b.ToTable("AppApiGatewayAggregate"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.AggregateReRouteConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("AggregateReRouteId") .HasColumnType("int"); b.Property("JsonPath") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("Parameter") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("ReRouteId") .HasColumnType("bigint"); b.Property("ReRouteKey") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("AggregateReRouteId"); b.ToTable("AppApiGatewayAggregateConfig"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.AuthenticationOptions", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("AllowedScopes") .HasColumnType("varchar(200) CHARACTER SET utf8mb4") .HasMaxLength(200); b.Property("AuthenticationProviderKey") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("ReRouteId") .HasColumnType("bigint"); b.HasKey("Id"); b.HasIndex("ReRouteId") .IsUnique(); b.ToTable("AppApiGatewayAuthOptions"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.CacheOptions", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("ReRouteId") .HasColumnType("bigint"); b.Property("Region") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("TtlSeconds") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("ReRouteId") .IsUnique(); b.ToTable("AppApiGatewayCacheOptions"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.DynamicReRoute", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("AppId") .IsRequired() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnName("ConcurrencyStamp") .HasColumnType("varchar(40) CHARACTER SET utf8mb4") .HasMaxLength(40); b.Property("DownstreamHttpVersion") .HasColumnType("varchar(30) CHARACTER SET utf8mb4") .HasMaxLength(30); b.Property("DynamicReRouteId") .HasColumnType("bigint"); b.Property("ExtraProperties") .HasColumnName("ExtraProperties") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("ServiceName") .IsRequired() .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.HasKey("Id"); b.ToTable("AppApiGatewayDynamicReRoute"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("AppId") .IsRequired() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("BaseUrl") .IsRequired() .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnName("ConcurrencyStamp") .HasColumnType("varchar(40) CHARACTER SET utf8mb4") .HasMaxLength(40); b.Property("DownstreamHttpVersion") .HasColumnType("varchar(30) CHARACTER SET utf8mb4") .HasMaxLength(30); b.Property("DownstreamScheme") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("ExtraProperties") .HasColumnName("ExtraProperties") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("IsActive") .HasColumnType("tinyint(1)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnName("IsDeleted") .HasColumnType("tinyint(1)") .HasDefaultValue(false); b.Property("ItemId") .HasColumnType("bigint"); b.Property("RequestIdKey") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.HasKey("Id"); b.ToTable("AppApiGatewayGlobalConfiguration"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.Headers", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("Key") .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("ReRouteId") .HasColumnType("bigint"); b.Property("Value") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.HasKey("Id"); b.ToTable("AppApiGatewayHeaders"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.HostAndPort", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("Host") .IsRequired() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("Port") .ValueGeneratedOnAdd() .HasColumnType("int") .HasDefaultValue(0); b.Property("ReRouteId") .HasColumnType("bigint"); b.HasKey("Id"); b.ToTable("AppApiGatewayHostAndPort"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.HttpHandlerOptions", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("AllowAutoRedirect") .HasColumnType("tinyint(1)"); b.Property("ItemId") .HasColumnType("bigint"); b.Property("MaxConnectionsPerServer") .HasColumnType("int"); b.Property("ReRouteId") .HasColumnType("bigint"); b.Property("UseCookieContainer") .HasColumnType("tinyint(1)"); b.Property("UseProxy") .HasColumnType("tinyint(1)"); b.Property("UseTracing") .HasColumnType("tinyint(1)"); b.HasKey("Id"); b.HasIndex("ItemId") .IsUnique(); b.HasIndex("ReRouteId") .IsUnique(); b.ToTable("AppApiGatewayHttpOptions"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.LoadBalancerOptions", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("Expiry") .HasColumnType("int"); b.Property("ItemId") .HasColumnType("bigint"); b.Property("Key") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("ReRouteId") .HasColumnType("bigint"); b.Property("Type") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.HasKey("Id"); b.HasIndex("ItemId") .IsUnique(); b.HasIndex("ReRouteId") .IsUnique(); b.ToTable("AppApiGatewayBalancerOptions"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.QoSOptions", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("DurationOfBreak") .HasColumnType("int"); b.Property("ExceptionsAllowedBeforeBreaking") .HasColumnType("int"); b.Property("ItemId") .HasColumnType("bigint"); b.Property("ReRouteId") .HasColumnType("bigint"); b.Property("TimeoutValue") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("ItemId") .IsUnique(); b.HasIndex("ReRouteId") .IsUnique(); b.ToTable("AppApiGatewayQoSOptions"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.RateLimitOptions", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("ClientIdHeader") .ValueGeneratedOnAdd() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50) .HasDefaultValue("ClientId"); b.Property("DisableRateLimitHeaders") .HasColumnType("tinyint(1)"); b.Property("HttpStatusCode") .ValueGeneratedOnAdd() .HasColumnType("int") .HasDefaultValue(429); b.Property("ItemId") .HasColumnType("bigint"); b.Property("QuotaExceededMessage") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("RateLimitCounterPrefix") .ValueGeneratedOnAdd() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50) .HasDefaultValue("ocelot"); b.HasKey("Id"); b.HasIndex("ItemId") .IsUnique(); b.ToTable("AppApiGatewayRateLimitOptions"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.RateLimitRule", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("ClientWhitelist") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("DynamicReRouteId") .HasColumnType("bigint"); b.Property("EnableRateLimiting") .HasColumnType("tinyint(1)"); b.Property("Limit") .HasColumnType("bigint"); b.Property("Period") .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("PeriodTimespan") .HasColumnType("double"); b.Property("ReRouteId") .HasColumnType("bigint"); b.HasKey("Id"); b.HasIndex("DynamicReRouteId") .IsUnique(); b.HasIndex("ReRouteId") .IsUnique(); b.ToTable("AppApiGatewayRateLimitRule"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.ReRoute", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("AddClaimsToRequest") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("AddHeadersToRequest") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("AddQueriesToRequest") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("AppId") .IsRequired() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("ChangeDownstreamPathTemplate") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnName("ConcurrencyStamp") .HasColumnType("varchar(40) CHARACTER SET utf8mb4") .HasMaxLength(40); b.Property("DangerousAcceptAnyServerCertificateValidator") .HasColumnType("tinyint(1)"); b.Property("DelegatingHandlers") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("DownstreamHeaderTransform") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("DownstreamHostAndPorts") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("DownstreamHttpMethod") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("DownstreamHttpVersion") .HasColumnType("varchar(30) CHARACTER SET utf8mb4") .HasMaxLength(30); b.Property("DownstreamPathTemplate") .IsRequired() .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("DownstreamScheme") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("ExtraProperties") .HasColumnName("ExtraProperties") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("Key") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("Priority") .HasColumnType("int"); b.Property("ReRouteId") .HasColumnType("bigint"); b.Property("ReRouteIsCaseSensitive") .HasColumnType("tinyint(1)"); b.Property("ReRouteName") .IsRequired() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("RequestIdKey") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("RouteClaimsRequirement") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("ServiceName") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("ServiceNamespace") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("Timeout") .HasColumnType("int"); b.Property("UpstreamHeaderTransform") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("UpstreamHost") .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("UpstreamHttpMethod") .IsRequired() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("UpstreamPathTemplate") .IsRequired() .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.HasKey("Id"); b.HasIndex("AppId", "DownstreamPathTemplate", "UpstreamPathTemplate") .IsUnique(); b.ToTable("AppApiGatewayReRoute"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.RouteGroup", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("AppId") .IsRequired() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("AppIpAddress") .IsRequired() .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("AppName") .IsRequired() .HasColumnType("varchar(100) CHARACTER SET utf8mb4") .HasMaxLength(100); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnName("ConcurrencyStamp") .HasColumnType("varchar(40) CHARACTER SET utf8mb4") .HasMaxLength(40); b.Property("CreationTime") .HasColumnName("CreationTime") .HasColumnType("datetime(6)"); b.Property("CreatorId") .HasColumnName("CreatorId") .HasColumnType("char(36)"); b.Property("DeleterId") .HasColumnType("char(36)"); b.Property("DeletionTime") .HasColumnType("datetime(6)"); b.Property("Description") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("ExtraProperties") .HasColumnName("ExtraProperties") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property("IsActive") .HasColumnType("tinyint(1)"); b.Property("IsDeleted") .HasColumnType("tinyint(1)"); b.Property("LastModificationTime") .HasColumnName("LastModificationTime") .HasColumnType("datetime(6)"); b.Property("LastModifierId") .HasColumnName("LastModifierId") .HasColumnType("char(36)"); b.Property("Name") .IsRequired() .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.HasKey("Id"); b.HasIndex("AppId", "AppName", "AppIpAddress"); b.ToTable("AppApiGatewayRouteGroup"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.SecurityOptions", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("IPAllowedList") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("IPBlockedList") .HasColumnType("varchar(1000) CHARACTER SET utf8mb4") .HasMaxLength(1000); b.Property("ReRouteId") .HasColumnType("bigint"); b.HasKey("Id"); b.HasIndex("ReRouteId") .IsUnique(); b.ToTable("AppApiGatewaySecurityOptions"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.ServiceDiscoveryProvider", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("ConfigurationKey") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("Host") .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("ItemId") .HasColumnType("bigint"); b.Property("Namespace") .HasColumnType("varchar(128) CHARACTER SET utf8mb4") .HasMaxLength(128); b.Property("PollingInterval") .HasColumnType("int"); b.Property("Port") .HasColumnType("int"); b.Property("Scheme") .HasColumnType("varchar(50) CHARACTER SET utf8mb4") .HasMaxLength(50); b.Property("Token") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property("Type") .HasColumnType("varchar(128) CHARACTER SET utf8mb4") .HasMaxLength(128); b.HasKey("Id"); b.HasIndex("ItemId") .IsUnique(); b.ToTable("AppApiGatewayDiscovery"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.AggregateReRouteConfig", b => { b.HasOne("LINGYUN.ApiGateway.Ocelot.AggregateReRoute", null) .WithMany("ReRouteKeysConfig") .HasForeignKey("AggregateReRouteId"); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.AuthenticationOptions", b => { b.HasOne("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRoute") .WithOne("AuthenticationOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.AuthenticationOptions", "ReRouteId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRouteId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.CacheOptions", b => { b.HasOne("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRoute") .WithOne("CacheOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.CacheOptions", "ReRouteId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRouteId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.HttpHandlerOptions", b => { b.HasOne("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", "GlobalConfiguration") .WithOne("HttpHandlerOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.HttpHandlerOptions", "ItemId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", "ItemId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRoute") .WithOne("HttpHandlerOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.HttpHandlerOptions", "ReRouteId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRouteId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.LoadBalancerOptions", b => { b.HasOne("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", "GlobalConfiguration") .WithOne("LoadBalancerOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.LoadBalancerOptions", "ItemId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", "ItemId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRoute") .WithOne("LoadBalancerOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.LoadBalancerOptions", "ReRouteId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRouteId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.QoSOptions", b => { b.HasOne("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", "GlobalConfiguration") .WithOne("QoSOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.QoSOptions", "ItemId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", "ItemId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRoute") .WithOne("QoSOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.QoSOptions", "ReRouteId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRouteId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.RateLimitOptions", b => { b.HasOne("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", "GlobalConfiguration") .WithOne("RateLimitOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.RateLimitOptions", "ItemId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", "ItemId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.RateLimitRule", b => { b.HasOne("LINGYUN.ApiGateway.Ocelot.DynamicReRoute", "DynamicReRoute") .WithOne("RateLimitRule") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.RateLimitRule", "DynamicReRouteId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.DynamicReRoute", "DynamicReRouteId") .OnDelete(DeleteBehavior.Cascade); b.HasOne("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRoute") .WithOne("RateLimitOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.RateLimitRule", "ReRouteId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRouteId") .OnDelete(DeleteBehavior.Cascade); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.SecurityOptions", b => { b.HasOne("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRoute") .WithOne("SecurityOptions") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.SecurityOptions", "ReRouteId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.ReRoute", "ReRouteId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("LINGYUN.ApiGateway.Ocelot.ServiceDiscoveryProvider", b => { b.HasOne("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", "GlobalConfiguration") .WithOne("ServiceDiscoveryProvider") .HasForeignKey("LINGYUN.ApiGateway.Ocelot.ServiceDiscoveryProvider", "ItemId") .HasPrincipalKey("LINGYUN.ApiGateway.Ocelot.GlobalConfiguration", "ItemId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); #pragma warning restore 612, 618 } } }