From 0955a0093f01b6674212274283af084f2f3920c7 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 24 Jan 2017 12:19:55 +0200 Subject: [PATCH] add all --- .gitignore | 1 + Entities/BusStop.cs | 35 +++++++++++++++++++++++++++++++++++ Entities/CrossSection.cs | 31 +++++++++++++++++++++++++++++++ Entities/DepartmentAffiliation.cs | 18 ++++++++++++++++++ Entities/FlowIntensity.cs | 41 +++++++++++++++++++++++++++++++++++++++++ Entities/Organization.cs | 19 +++++++++++++++++++ Entities/PostgresDbContext.cs | 772 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Entities/Region.cs | 35 +++++++++++++++++++++++++++++++++++ Entities/Road.cs | 45 +++++++++++++++++++++++++++++++++++++++++++++ Entities/RoadCategory.cs | 11 +++++++++++ Entities/RoadDirection.cs | 22 ++++++++++++++++++++++ Entities/RoadPassport.cs | 17 +++++++++++++++++ Entities/RoadService.cs | 22 ++++++++++++++++++++++ Entities/RoadSurface.cs | 30 ++++++++++++++++++++++++++++++ Entities/RoadType.cs | 19 +++++++++++++++++++ Entities/RoadWidth.cs | 24 ++++++++++++++++++++++++ Entities/ServiceObject.cs | 27 +++++++++++++++++++++++++++ Entities/ServiceObjectType.cs | 18 ++++++++++++++++++ Entities/Settlement.cs | 25 +++++++++++++++++++++++++ Entities/SettlementAddressLink.cs | 22 ++++++++++++++++++++++ Entities/SettlementLocation.cs | 18 ++++++++++++++++++ Entities/StateCommon.cs | 22 ++++++++++++++++++++++ Entities/SurfaceTreatment.cs | 18 ++++++++++++++++++ Entities/SurfaceType.cs | 22 ++++++++++++++++++++++ Maps.xproj.user | 4 +++- project.json | 65 +++++++++++++++++++++++++++++++++++------------------------------ project.lock.json | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 27 files changed, 1442 insertions(+), 32 deletions(-) create mode 100644 Entities/BusStop.cs create mode 100644 Entities/CrossSection.cs create mode 100644 Entities/DepartmentAffiliation.cs create mode 100644 Entities/FlowIntensity.cs create mode 100644 Entities/Organization.cs create mode 100644 Entities/PostgresDbContext.cs create mode 100644 Entities/Region.cs create mode 100644 Entities/Road.cs create mode 100644 Entities/RoadCategory.cs create mode 100644 Entities/RoadDirection.cs create mode 100644 Entities/RoadPassport.cs create mode 100644 Entities/RoadService.cs create mode 100644 Entities/RoadSurface.cs create mode 100644 Entities/RoadType.cs create mode 100644 Entities/RoadWidth.cs create mode 100644 Entities/ServiceObject.cs create mode 100644 Entities/ServiceObjectType.cs create mode 100644 Entities/Settlement.cs create mode 100644 Entities/SettlementAddressLink.cs create mode 100644 Entities/SettlementLocation.cs create mode 100644 Entities/StateCommon.cs create mode 100644 Entities/SurfaceTreatment.cs create mode 100644 Entities/SurfaceType.cs diff --git a/.gitignore b/.gitignore index 4be18c5..002d443 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ ################################################################################ /bin/Debug/netcoreapp1.0 +/obj/Debug/netcoreapp1.0 diff --git a/Entities/BusStop.cs b/Entities/BusStop.cs new file mode 100644 index 0000000..0f528f8 --- /dev/null +++ b/Entities/BusStop.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class BusStop + { + public int BusStopId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public int? SettlementId { get; set; } + public double? LocationLeft { get; set; } + public double? LocationRight { get; set; } + public int? SurfaceTypeId { get; set; } + public int? CrossSectionNumber { get; set; } + public string Position { get; set; } + public int? AreaStopAvailability { get; set; } + public int? PocketAvailability { get; set; } + public int? AreaLandAvailability { get; set; } + public int? ToiletAvailability { get; set; } + public int? StateCommonId { get; set; } + public int? BusStationCardId { get; set; } + public double? BalanceCost { get; set; } + public string RepairCertificate { get; set; } + public int? DateActual { get; set; } + public int? YearBuild { get; set; } + public int? YearRepair { get; set; } + + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + public virtual Settlement Settlement { get; set; } + public virtual StateCommon StateCommon { get; set; } + public virtual SurfaceType SurfaceType { get; set; } + } +} diff --git a/Entities/CrossSection.cs b/Entities/CrossSection.cs new file mode 100644 index 0000000..de3ff90 --- /dev/null +++ b/Entities/CrossSection.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class CrossSection + { + public int CrossSectionId { get; set; } + public int? RegionId { get; set; } + public int? RoadId { get; set; } + public double? LocationLeft { get; set; } + public double? LocationRight { get; set; } + public string Direction { get; set; } + public int? SurfaceTypeId { get; set; } + public double? LengthSection { get; set; } + public double? LengthSurface { get; set; } + public double? DistanceEdge { get; set; } + public double? Width { get; set; } + public double? Angle { get; set; } + public int? TubeAvailability { get; set; } + public int? SafetyAvailability { get; set; } + public int? YearBuild { get; set; } + public int? YearRepair { get; set; } + public int? StateCommonId { get; set; } + + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + public virtual StateCommon StateCommon { get; set; } + public virtual SurfaceType SurfaceType { get; set; } + } +} diff --git a/Entities/DepartmentAffiliation.cs b/Entities/DepartmentAffiliation.cs new file mode 100644 index 0000000..ad03518 --- /dev/null +++ b/Entities/DepartmentAffiliation.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class DepartmentAffiliation + { + public DepartmentAffiliation() + { + ServiceObject = new HashSet(); + } + + public int DepartmentAffiliationId { get; set; } + public string Name { get; set; } + + public virtual ICollection ServiceObject { get; set; } + } +} diff --git a/Entities/FlowIntensity.cs b/Entities/FlowIntensity.cs new file mode 100644 index 0000000..0010d2d --- /dev/null +++ b/Entities/FlowIntensity.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class FlowIntensity + { + public int FlowIntensityId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public double? Location { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + public int? RoadDirectionId { get; set; } + public int? SettlementId { get; set; } + public int? IntensityTotal { get; set; } + public int? IntensityIncrease { get; set; } + public int? IntensityMoto { get; set; } + public int? IntensityMotoSidecar { get; set; } + public int? IntensityCar { get; set; } + public int? IntensityTruckTwo { get; set; } + public int? IntensityTruckTwoSix { get; set; } + public int? IntensityTruckSixEight { get; set; } + public int? IntensityTruckEightFourteen { get; set; } + public int? IntensityTruckFourteen { get; set; } + public int? IntensityLorryTwelve { get; set; } + public int? IntensityLorryTwelveTwenty { get; set; } + public int? IntensityLorryTwentyThirty { get; set; } + public int? IntensityLorryThirty { get; set; } + public int? IntensityTractorUnderTen { get; set; } + public int? IntensityTractorOverTen { get; set; } + public int? IntensityBus { get; set; } + public int? IntensityBusCoupled { get; set; } + public int? DateAdd { get; set; } + + public virtual Region Region { get; set; } + public virtual RoadDirection RoadDirection { get; set; } + public virtual Road Road { get; set; } + public virtual Settlement Settlement { get; set; } + } +} diff --git a/Entities/Organization.cs b/Entities/Organization.cs new file mode 100644 index 0000000..2116d2a --- /dev/null +++ b/Entities/Organization.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class Organization + { + public Organization() + { + RoadService = new HashSet(); + } + + public int OrganizationId { get; set; } + public string Name { get; set; } + public int? DateAdd { get; set; } + + public virtual ICollection RoadService { get; set; } + } +} diff --git a/Entities/PostgresDbContext.cs b/Entities/PostgresDbContext.cs new file mode 100644 index 0000000..4cc935c --- /dev/null +++ b/Entities/PostgresDbContext.cs @@ -0,0 +1,772 @@ +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Metadata; + +namespace Maps.Entities +{ + public partial class PostgresDbContext : DbContext + { + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) + { + #warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings. + optionsBuilder.UseNpgsql(@"User ID=coremap;Password=5F9g4V9m;Host=195.248.225.149;Port=5432;Database=coremap;Pooling=true;"); + } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + modelBuilder.Entity(entity => + { + entity.ToTable("bus_stop"); + + entity.Property(e => e.BusStopId).HasColumnName("bus_stop_id"); + + entity.Property(e => e.AreaLandAvailability).HasColumnName("area_land_availability"); + + entity.Property(e => e.AreaStopAvailability).HasColumnName("area_stop_availability"); + + entity.Property(e => e.BalanceCost).HasColumnName("balance_cost"); + + entity.Property(e => e.BusStationCardId).HasColumnName("bus_station_card_id"); + + entity.Property(e => e.CrossSectionNumber).HasColumnName("cross_section_number"); + + entity.Property(e => e.DateActual).HasColumnName("date_actual"); + + entity.Property(e => e.LocationLeft).HasColumnName("location_left"); + + entity.Property(e => e.LocationRight).HasColumnName("location_right"); + + entity.Property(e => e.PocketAvailability).HasColumnName("pocket_availability"); + + entity.Property(e => e.Position) + .HasColumnName("position") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RepairCertificate) + .HasColumnName("repair_certificate") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.SettlementId).HasColumnName("settlement_id"); + + entity.Property(e => e.StateCommonId).HasColumnName("state_common_id"); + + entity.Property(e => e.SurfaceTypeId).HasColumnName("surface_type_id"); + + entity.Property(e => e.ToiletAvailability).HasColumnName("toilet_availability"); + + entity.Property(e => e.YearBuild).HasColumnName("year_build"); + + entity.Property(e => e.YearRepair).HasColumnName("year_repair"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.BusStop) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("bus_stop_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.BusStop) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("bus_stop_road_id_fkey"); + + entity.HasOne(d => d.Settlement) + .WithMany(p => p.BusStop) + .HasForeignKey(d => d.SettlementId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("bus_stop_settlement_id_fkey"); + + entity.HasOne(d => d.StateCommon) + .WithMany(p => p.BusStop) + .HasForeignKey(d => d.StateCommonId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("bus_stop_state_common_id_fkey"); + + entity.HasOne(d => d.SurfaceType) + .WithMany(p => p.BusStop) + .HasForeignKey(d => d.SurfaceTypeId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("bus_stop_surface_type_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("cross_section"); + + entity.Property(e => e.CrossSectionId).HasColumnName("cross_section_id"); + + entity.Property(e => e.Angle).HasColumnName("angle"); + + entity.Property(e => e.Direction) + .HasColumnName("direction") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.DistanceEdge).HasColumnName("distance_edge"); + + entity.Property(e => e.LengthSection).HasColumnName("length_section"); + + entity.Property(e => e.LengthSurface).HasColumnName("length_surface"); + + entity.Property(e => e.LocationLeft).HasColumnName("location_left"); + + entity.Property(e => e.LocationRight).HasColumnName("location_right"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.SafetyAvailability).HasColumnName("safety_availability"); + + entity.Property(e => e.StateCommonId).HasColumnName("state_common_id"); + + entity.Property(e => e.SurfaceTypeId).HasColumnName("surface_type_id"); + + entity.Property(e => e.TubeAvailability).HasColumnName("tube_availability"); + + entity.Property(e => e.Width).HasColumnName("width"); + + entity.Property(e => e.YearBuild).HasColumnName("year_build"); + + entity.Property(e => e.YearRepair).HasColumnName("year_repair"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.CrossSection) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("cross_section_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.CrossSection) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("cross_section_road_id_fkey"); + + entity.HasOne(d => d.StateCommon) + .WithMany(p => p.CrossSection) + .HasForeignKey(d => d.StateCommonId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("cross_section_state_common_id_fkey"); + + entity.HasOne(d => d.SurfaceType) + .WithMany(p => p.CrossSection) + .HasForeignKey(d => d.SurfaceTypeId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("cross_section_surface_type_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("department_affiliation"); + + entity.Property(e => e.DepartmentAffiliationId).HasColumnName("department_affiliation_id"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("flow_intensity"); + + entity.Property(e => e.FlowIntensityId).HasColumnName("flow_intensity_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.DateAdd).HasColumnName("date_add"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.IntensityBus).HasColumnName("intensity_bus"); + + entity.Property(e => e.IntensityBusCoupled).HasColumnName("intensity_bus_coupled"); + + entity.Property(e => e.IntensityCar).HasColumnName("intensity_car"); + + entity.Property(e => e.IntensityIncrease).HasColumnName("intensity_increase"); + + entity.Property(e => e.IntensityLorryThirty).HasColumnName("intensity_lorry_thirty"); + + entity.Property(e => e.IntensityLorryTwelve).HasColumnName("intensity_lorry_twelve"); + + entity.Property(e => e.IntensityLorryTwelveTwenty).HasColumnName("intensity_lorry_twelve_twenty"); + + entity.Property(e => e.IntensityLorryTwentyThirty).HasColumnName("intensity_lorry_twenty_thirty"); + + entity.Property(e => e.IntensityMoto).HasColumnName("intensity_moto"); + + entity.Property(e => e.IntensityMotoSidecar).HasColumnName("intensity_moto_sidecar"); + + entity.Property(e => e.IntensityTotal).HasColumnName("intensity_total"); + + entity.Property(e => e.IntensityTractorOverTen).HasColumnName("intensity_tractor_over_ten"); + + entity.Property(e => e.IntensityTractorUnderTen).HasColumnName("intensity_tractor_under_ten"); + + entity.Property(e => e.IntensityTruckEightFourteen).HasColumnName("intensity_truck_eight_fourteen"); + + entity.Property(e => e.IntensityTruckFourteen).HasColumnName("intensity_truck_fourteen"); + + entity.Property(e => e.IntensityTruckSixEight).HasColumnName("intensity_truck_six_eight"); + + entity.Property(e => e.IntensityTruckTwo).HasColumnName("intensity_truck_two"); + + entity.Property(e => e.IntensityTruckTwoSix).HasColumnName("intensity_truck_two_six"); + + entity.Property(e => e.Location).HasColumnName("location"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadDirectionId).HasColumnName("road_direction_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.SettlementId).HasColumnName("settlement_id"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.FlowIntensity) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("flow_intensity_region_id_fkey"); + + entity.HasOne(d => d.RoadDirection) + .WithMany(p => p.FlowIntensity) + .HasForeignKey(d => d.RoadDirectionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("flow_intensity_road_direction_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.FlowIntensity) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("flow_intensity_road_id_fkey"); + + entity.HasOne(d => d.Settlement) + .WithMany(p => p.FlowIntensity) + .HasForeignKey(d => d.SettlementId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("flow_intensity_settlement_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("organization"); + + entity.Property(e => e.OrganizationId).HasColumnName("organization_id"); + + entity.Property(e => e.DateAdd).HasColumnName("date_add"); + + entity.Property(e => e.Name) + .IsRequired() + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("region"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.Index).HasColumnName("index"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.AcceptTransferDoc) + .HasColumnName("accept_transfer_doc") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.AcceptanceDoc) + .HasColumnName("acceptance_doc") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.AuthorityAct) + .HasColumnName("authority_act") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.EconomicValue).HasColumnName("economic_value"); + + entity.Property(e => e.HistoricalBackground).HasColumnName("historical_background"); + + entity.Property(e => e.Index).HasColumnName("index"); + + entity.Property(e => e.LawDoc) + .HasColumnName("law_doc") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.Length).HasColumnName("length"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.RoadTypeId).HasColumnName("road_type_id"); + + entity.Property(e => e.Value).HasColumnName("value"); + + entity.HasOne(d => d.RoadType) + .WithMany(p => p.Road) + .HasForeignKey(d => d.RoadTypeId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_road_type_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_category"); + + entity.Property(e => e.RoadCategoryId).HasColumnName("road_category_id"); + + entity.Property(e => e.Value) + .HasColumnName("value") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_direction"); + + entity.Property(e => e.RoadDirectionId).HasColumnName("road_direction_id"); + + entity.Property(e => e.DirectionName) + .IsRequired() + .HasColumnName("direction_name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_passport"); + + entity.Property(e => e.RoadPassportId).HasColumnName("road_passport_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.RoadPassport) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_passport_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.RoadPassport) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_passport_road_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_service"); + + entity.Property(e => e.RoadServiceId).HasColumnName("road_service_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.OrganizationId).HasColumnName("organization_id"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadDirectionId).HasColumnName("road_direction_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.YearBegin).HasColumnName("year_begin"); + + entity.HasOne(d => d.Organization) + .WithMany(p => p.RoadService) + .HasForeignKey(d => d.OrganizationId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_service_organization_id_fkey"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.RoadService) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_service_region_id_fkey"); + + entity.HasOne(d => d.RoadDirection) + .WithMany(p => p.RoadService) + .HasForeignKey(d => d.RoadDirectionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_service_road_direction_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.RoadService) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_service_road_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_surface"); + + entity.Property(e => e.RoadSurfaceId).HasColumnName("road_surface_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.CrossSectionNumber).HasColumnName("cross_section_number"); + + entity.Property(e => e.ElastisityModule).HasColumnName("elastisity_module"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.LaneCountLeft).HasColumnName("lane_count_left"); + + entity.Property(e => e.LaneCountRight).HasColumnName("lane_count_right"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadDirectionId).HasColumnName("road_direction_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.RoadSurfaceConstructionId) + .HasColumnName("road_surface_construction_id") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.StateCommonId).HasColumnName("state_common_id"); + + entity.Property(e => e.SurfaceTreatmentId).HasColumnName("surface_treatment_id"); + + entity.Property(e => e.SurfaceTypeId).HasColumnName("surface_type_id"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_region_id_fkey"); + + entity.HasOne(d => d.RoadDirection) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.RoadDirectionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_road_direction_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_road_id_fkey"); + + entity.HasOne(d => d.StateCommon) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.StateCommonId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_state_common_id_fkey"); + + entity.HasOne(d => d.SurfaceTreatment) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.SurfaceTreatmentId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_surface_treatment_id_fkey"); + + entity.HasOne(d => d.SurfaceType) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.SurfaceTypeId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_surface_type_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_type"); + + entity.Property(e => e.RoadTypeId).HasColumnName("road_type_id"); + + entity.Property(e => e.Definition) + .HasColumnName("definition") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.Value) + .HasColumnName("value") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_width"); + + entity.Property(e => e.RoadWidthId).HasColumnName("road_width_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.CountLaneLeft).HasColumnName("count_lane_left"); + + entity.Property(e => e.CountLaneRight).HasColumnName("count_lane_right"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.WidthReverseRoad).HasColumnName("width_reverse_road"); + + entity.Property(e => e.WidthRoadsideLeft).HasColumnName("width_roadside_left"); + + entity.Property(e => e.WidthRoadsideRight).HasColumnName("width_roadside_right"); + + entity.Property(e => e.WidthRoadwayForward).HasColumnName("width_roadway_forward"); + + entity.Property(e => e.WidthStrip).HasColumnName("width_strip"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.RoadWidth) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_width_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.RoadWidth) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_width_road_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("service_object"); + + entity.Property(e => e.ServiceObjectId).HasColumnName("service_object_id"); + + entity.Property(e => e.ArrangementElements).HasColumnName("arrangement_elements"); + + entity.Property(e => e.Capacity).HasColumnName("capacity"); + + entity.Property(e => e.DepartmentAffiliationId).HasColumnName("department_affiliation_id"); + + entity.Property(e => e.Distance).HasColumnName("distance"); + + entity.Property(e => e.LocationAxis).HasColumnName("location_axis"); + + entity.Property(e => e.LocationLeft).HasColumnName("location_left"); + + entity.Property(e => e.LocationRight).HasColumnName("location_right"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.ServiceObjectTypeId).HasColumnName("service_object_type_id"); + + entity.Property(e => e.SettlementId).HasColumnName("settlement_id"); + + entity.HasOne(d => d.DepartmentAffiliation) + .WithMany(p => p.ServiceObject) + .HasForeignKey(d => d.DepartmentAffiliationId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("service_object_department_affiliation_id_fkey"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.ServiceObject) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("service_object_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.ServiceObject) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("service_object_road_id_fkey"); + + entity.HasOne(d => d.ServiceObjectType) + .WithMany(p => p.ServiceObject) + .HasForeignKey(d => d.ServiceObjectTypeId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("service_object_service_object_type_id_fkey"); + + entity.HasOne(d => d.Settlement) + .WithMany(p => p.ServiceObject) + .HasForeignKey(d => d.SettlementId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("service_object_settlement_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("service_object_type"); + + entity.Property(e => e.ServiceObjectTypeId).HasColumnName("service_object_type_id"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("settlement"); + + entity.Property(e => e.SettlementId).HasColumnName("settlement_id"); + + entity.Property(e => e.Name) + .IsRequired() + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.Sign) + .HasColumnName("sign") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("settlement_address_link"); + + entity.Property(e => e.SettlementAddressLinkId).HasColumnName("settlement_address_link_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.Distance).HasColumnName("distance"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.SettlementId).HasColumnName("settlement_id"); + + entity.Property(e => e.SettlementLocationId).HasColumnName("settlement_location_id"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.SettlementAddressLink) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("settlement_address_link_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.SettlementAddressLink) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("settlement_address_link_road_id_fkey"); + + entity.HasOne(d => d.Settlement) + .WithMany(p => p.SettlementAddressLink) + .HasForeignKey(d => d.SettlementId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("settlement_address_link_settlement_id_fkey"); + + entity.HasOne(d => d.SettlementLocation) + .WithMany(p => p.SettlementAddressLink) + .HasForeignKey(d => d.SettlementLocationId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("settlement_address_link_settlement_location_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("settlement_location"); + + entity.Property(e => e.SettlementLocationId).HasColumnName("settlement_location_id"); + + entity.Property(e => e.Value) + .IsRequired() + .HasColumnName("value") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("state_common"); + + entity.Property(e => e.StateCommonId).HasColumnName("state_common_id"); + + entity.Property(e => e.Value) + .HasColumnName("value") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("surface_treatment"); + + entity.Property(e => e.SurfaceTreatmentId).HasColumnName("surface_treatment_id"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("surface_type"); + + entity.Property(e => e.SurfaceTypeId).HasColumnName("surface_type_id"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + } + + public virtual DbSet BusStop { get; set; } + public virtual DbSet CrossSection { get; set; } + public virtual DbSet DepartmentAffiliation { get; set; } + public virtual DbSet FlowIntensity { get; set; } + public virtual DbSet Organization { get; set; } + public virtual DbSet Region { get; set; } + public virtual DbSet Road { get; set; } + public virtual DbSet RoadCategory { get; set; } + public virtual DbSet RoadDirection { get; set; } + public virtual DbSet RoadPassport { get; set; } + public virtual DbSet RoadService { get; set; } + public virtual DbSet RoadSurface { get; set; } + public virtual DbSet RoadType { get; set; } + public virtual DbSet RoadWidth { get; set; } + public virtual DbSet ServiceObject { get; set; } + public virtual DbSet ServiceObjectType { get; set; } + public virtual DbSet Settlement { get; set; } + public virtual DbSet SettlementAddressLink { get; set; } + public virtual DbSet SettlementLocation { get; set; } + public virtual DbSet StateCommon { get; set; } + public virtual DbSet SurfaceTreatment { get; set; } + public virtual DbSet SurfaceType { get; set; } + } +} \ No newline at end of file diff --git a/Entities/Region.cs b/Entities/Region.cs new file mode 100644 index 0000000..a60a242 --- /dev/null +++ b/Entities/Region.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class Region + { + public Region() + { + BusStop = new HashSet(); + CrossSection = new HashSet(); + FlowIntensity = new HashSet(); + RoadPassport = new HashSet(); + RoadService = new HashSet(); + RoadSurface = new HashSet(); + RoadWidth = new HashSet(); + ServiceObject = new HashSet(); + SettlementAddressLink = new HashSet(); + } + + public int RegionId { get; set; } + public string Name { get; set; } + public int? Index { get; set; } + + public virtual ICollection BusStop { get; set; } + public virtual ICollection CrossSection { get; set; } + public virtual ICollection FlowIntensity { get; set; } + public virtual ICollection RoadPassport { get; set; } + public virtual ICollection RoadService { get; set; } + public virtual ICollection RoadSurface { get; set; } + public virtual ICollection RoadWidth { get; set; } + public virtual ICollection ServiceObject { get; set; } + public virtual ICollection SettlementAddressLink { get; set; } + } +} diff --git a/Entities/Road.cs b/Entities/Road.cs new file mode 100644 index 0000000..b4fd68d --- /dev/null +++ b/Entities/Road.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class Road + { + public Road() + { + BusStop = new HashSet(); + CrossSection = new HashSet(); + FlowIntensity = new HashSet(); + RoadPassport = new HashSet(); + RoadService = new HashSet(); + RoadSurface = new HashSet(); + RoadWidth = new HashSet(); + ServiceObject = new HashSet(); + SettlementAddressLink = new HashSet(); + } + + public int RoadId { get; set; } + public string Name { get; set; } + public string Value { get; set; } + public double? Length { get; set; } + public string HistoricalBackground { get; set; } + public string EconomicValue { get; set; } + public string LawDoc { get; set; } + public string AcceptTransferDoc { get; set; } + public string AcceptanceDoc { get; set; } + public string AuthorityAct { get; set; } + public int? RoadTypeId { get; set; } + public int Index { get; set; } + + public virtual ICollection BusStop { get; set; } + public virtual ICollection CrossSection { get; set; } + public virtual ICollection FlowIntensity { get; set; } + public virtual ICollection RoadPassport { get; set; } + public virtual ICollection RoadService { get; set; } + public virtual ICollection RoadSurface { get; set; } + public virtual ICollection RoadWidth { get; set; } + public virtual ICollection ServiceObject { get; set; } + public virtual ICollection SettlementAddressLink { get; set; } + public virtual RoadType RoadType { get; set; } + } +} diff --git a/Entities/RoadCategory.cs b/Entities/RoadCategory.cs new file mode 100644 index 0000000..aa71b36 --- /dev/null +++ b/Entities/RoadCategory.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class RoadCategory + { + public int RoadCategoryId { get; set; } + public string Value { get; set; } + } +} diff --git a/Entities/RoadDirection.cs b/Entities/RoadDirection.cs new file mode 100644 index 0000000..d2131fd --- /dev/null +++ b/Entities/RoadDirection.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class RoadDirection + { + public RoadDirection() + { + FlowIntensity = new HashSet(); + RoadService = new HashSet(); + RoadSurface = new HashSet(); + } + + public int RoadDirectionId { get; set; } + public string DirectionName { get; set; } + + public virtual ICollection FlowIntensity { get; set; } + public virtual ICollection RoadService { get; set; } + public virtual ICollection RoadSurface { get; set; } + } +} diff --git a/Entities/RoadPassport.cs b/Entities/RoadPassport.cs new file mode 100644 index 0000000..91763b8 --- /dev/null +++ b/Entities/RoadPassport.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class RoadPassport + { + public int RoadPassportId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + } +} diff --git a/Entities/RoadService.cs b/Entities/RoadService.cs new file mode 100644 index 0000000..83e289a --- /dev/null +++ b/Entities/RoadService.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class RoadService + { + public int RoadServiceId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public int? RoadDirectionId { get; set; } + public int? OrganizationId { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + public int? YearBegin { get; set; } + + public virtual Organization Organization { get; set; } + public virtual Region Region { get; set; } + public virtual RoadDirection RoadDirection { get; set; } + public virtual Road Road { get; set; } + } +} diff --git a/Entities/RoadSurface.cs b/Entities/RoadSurface.cs new file mode 100644 index 0000000..a78ffab --- /dev/null +++ b/Entities/RoadSurface.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class RoadSurface + { + public int RoadSurfaceId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public int? RoadDirectionId { get; set; } + public int? SurfaceTypeId { get; set; } + public int? SurfaceTreatmentId { get; set; } + public int? StateCommonId { get; set; } + public int? CrossSectionNumber { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + public int? LaneCountLeft { get; set; } + public int? LaneCountRight { get; set; } + public string RoadSurfaceConstructionId { get; set; } + public double? ElastisityModule { get; set; } + + public virtual Region Region { get; set; } + public virtual RoadDirection RoadDirection { get; set; } + public virtual Road Road { get; set; } + public virtual StateCommon StateCommon { get; set; } + public virtual SurfaceTreatment SurfaceTreatment { get; set; } + public virtual SurfaceType SurfaceType { get; set; } + } +} diff --git a/Entities/RoadType.cs b/Entities/RoadType.cs new file mode 100644 index 0000000..4ce2ffa --- /dev/null +++ b/Entities/RoadType.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class RoadType + { + public RoadType() + { + Road = new HashSet(); + } + + public int RoadTypeId { get; set; } + public string Value { get; set; } + public string Definition { get; set; } + + public virtual ICollection Road { get; set; } + } +} diff --git a/Entities/RoadWidth.cs b/Entities/RoadWidth.cs new file mode 100644 index 0000000..751e55f --- /dev/null +++ b/Entities/RoadWidth.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class RoadWidth + { + public int RoadWidthId { get; set; } + public int? RegionId { get; set; } + public int? RoadId { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + public double? WidthRoadsideLeft { get; set; } + public double? WidthReverseRoad { get; set; } + public double? WidthStrip { get; set; } + public double? WidthRoadwayForward { get; set; } + public double? WidthRoadsideRight { get; set; } + public double? CountLaneLeft { get; set; } + public double? CountLaneRight { get; set; } + + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + } +} diff --git a/Entities/ServiceObject.cs b/Entities/ServiceObject.cs new file mode 100644 index 0000000..4163b62 --- /dev/null +++ b/Entities/ServiceObject.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class ServiceObject + { + public int ServiceObjectId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public int? ServiceObjectTypeId { get; set; } + public int? SettlementId { get; set; } + public int? DepartmentAffiliationId { get; set; } + public double? LocationRight { get; set; } + public double? LocationLeft { get; set; } + public double? LocationAxis { get; set; } + public double? Distance { get; set; } + public double? Capacity { get; set; } + public string ArrangementElements { get; set; } + + public virtual DepartmentAffiliation DepartmentAffiliation { get; set; } + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + public virtual ServiceObjectType ServiceObjectType { get; set; } + public virtual Settlement Settlement { get; set; } + } +} diff --git a/Entities/ServiceObjectType.cs b/Entities/ServiceObjectType.cs new file mode 100644 index 0000000..8f6be3f --- /dev/null +++ b/Entities/ServiceObjectType.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class ServiceObjectType + { + public ServiceObjectType() + { + ServiceObject = new HashSet(); + } + + public int ServiceObjectTypeId { get; set; } + public string Name { get; set; } + + public virtual ICollection ServiceObject { get; set; } + } +} diff --git a/Entities/Settlement.cs b/Entities/Settlement.cs new file mode 100644 index 0000000..d406888 --- /dev/null +++ b/Entities/Settlement.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class Settlement + { + public Settlement() + { + BusStop = new HashSet(); + FlowIntensity = new HashSet(); + ServiceObject = new HashSet(); + SettlementAddressLink = new HashSet(); + } + + public int SettlementId { get; set; } + public string Name { get; set; } + public string Sign { get; set; } + + public virtual ICollection BusStop { get; set; } + public virtual ICollection FlowIntensity { get; set; } + public virtual ICollection ServiceObject { get; set; } + public virtual ICollection SettlementAddressLink { get; set; } + } +} diff --git a/Entities/SettlementAddressLink.cs b/Entities/SettlementAddressLink.cs new file mode 100644 index 0000000..7b2eb7a --- /dev/null +++ b/Entities/SettlementAddressLink.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class SettlementAddressLink + { + public int SettlementAddressLinkId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public int? SettlementLocationId { get; set; } + public int? SettlementId { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + public double? Distance { get; set; } + + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + public virtual Settlement Settlement { get; set; } + public virtual SettlementLocation SettlementLocation { get; set; } + } +} diff --git a/Entities/SettlementLocation.cs b/Entities/SettlementLocation.cs new file mode 100644 index 0000000..58cfaec --- /dev/null +++ b/Entities/SettlementLocation.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class SettlementLocation + { + public SettlementLocation() + { + SettlementAddressLink = new HashSet(); + } + + public int SettlementLocationId { get; set; } + public string Value { get; set; } + + public virtual ICollection SettlementAddressLink { get; set; } + } +} diff --git a/Entities/StateCommon.cs b/Entities/StateCommon.cs new file mode 100644 index 0000000..78b7215 --- /dev/null +++ b/Entities/StateCommon.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class StateCommon + { + public StateCommon() + { + BusStop = new HashSet(); + CrossSection = new HashSet(); + RoadSurface = new HashSet(); + } + + public int StateCommonId { get; set; } + public string Value { get; set; } + + public virtual ICollection BusStop { get; set; } + public virtual ICollection CrossSection { get; set; } + public virtual ICollection RoadSurface { get; set; } + } +} diff --git a/Entities/SurfaceTreatment.cs b/Entities/SurfaceTreatment.cs new file mode 100644 index 0000000..8ad8835 --- /dev/null +++ b/Entities/SurfaceTreatment.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class SurfaceTreatment + { + public SurfaceTreatment() + { + RoadSurface = new HashSet(); + } + + public int SurfaceTreatmentId { get; set; } + public string Name { get; set; } + + public virtual ICollection RoadSurface { get; set; } + } +} diff --git a/Entities/SurfaceType.cs b/Entities/SurfaceType.cs new file mode 100644 index 0000000..8428acf --- /dev/null +++ b/Entities/SurfaceType.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace Maps.Entities +{ + public partial class SurfaceType + { + public SurfaceType() + { + BusStop = new HashSet(); + CrossSection = new HashSet(); + RoadSurface = new HashSet(); + } + + public int SurfaceTypeId { get; set; } + public string Name { get; set; } + + public virtual ICollection BusStop { get; set; } + public virtual ICollection CrossSection { get; set; } + public virtual ICollection RoadSurface { get; set; } + } +} diff --git a/Maps.xproj.user b/Maps.xproj.user index abe8dd8..f0a2a5d 100644 --- a/Maps.xproj.user +++ b/Maps.xproj.user @@ -1,4 +1,6 @@  - + + IIS Express + \ No newline at end of file diff --git a/project.json b/project.json index 1347c15..eaab934 100644 --- a/project.json +++ b/project.json @@ -1,36 +1,41 @@ { - "dependencies": { - "Microsoft.NETCore.App": { - "version": "1.0.1", - "type": "platform" + "dependencies": { + "Microsoft.NETCore.App": { + "version": "1.0.1", + "type": "platform" + }, + "Microsoft.ApplicationInsights.AspNetCore": "1.0.0", + "Microsoft.AspNetCore.Diagnostics": "1.0.0", + "Microsoft.AspNetCore.Mvc": "1.0.1", + "Microsoft.AspNetCore.Razor.Tools": { + "version": "1.0.0-preview2-final", + "type": "build" + }, + "Microsoft.AspNetCore.Routing": "1.0.1", + "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", + "Microsoft.AspNetCore.Server.Kestrel": "1.0.1", + "Microsoft.AspNetCore.StaticFiles": "1.0.0", + "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", + "Microsoft.Extensions.Configuration.Json": "1.0.0", + "Microsoft.Extensions.Logging": "1.0.0", + "Microsoft.Extensions.Logging.Console": "1.0.0", + "Microsoft.Extensions.Logging.Debug": "1.0.0", + "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0", + "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0", + "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final", + "Npgsql.EntityFrameworkCore.PostgreSQL": "1.0.2", + "Npgsql.EntityFrameworkCore.PostgreSQL.Design": "1.0.2" }, - "Microsoft.ApplicationInsights.AspNetCore": "1.0.0", - "Microsoft.AspNetCore.Diagnostics": "1.0.0", - "Microsoft.AspNetCore.Mvc": "1.0.1", - "Microsoft.AspNetCore.Razor.Tools": { - "version": "1.0.0-preview2-final", - "type": "build" - }, - "Microsoft.AspNetCore.Routing": "1.0.1", - "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", - "Microsoft.AspNetCore.Server.Kestrel": "1.0.1", - "Microsoft.AspNetCore.StaticFiles": "1.0.0", - "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", - "Microsoft.Extensions.Configuration.Json": "1.0.0", - "Microsoft.Extensions.Logging": "1.0.0", - "Microsoft.Extensions.Logging.Console": "1.0.0", - "Microsoft.Extensions.Logging.Debug": "1.0.0", - "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0", - "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0", - "Npgsql.EntityFrameworkCore.PostgreSQL": "1.0.2", - "Npgsql.EntityFrameworkCore.PostgreSQL.Design":"1.0.2" - }, - "tools": { - "BundlerMinifier.Core": "2.0.238", - "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final", - "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final" - }, + "tools": { + "BundlerMinifier.Core": "2.0.238", + "Microsoft.EntityFrameworkCore.Tools": { + "version": "1.0.0-preview2-final", + "imports": "portable-net45+win8+dnxcore50" + }, + "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final", + "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final" + }, "frameworks": { "netcoreapp1.0": { diff --git a/project.lock.json b/project.lock.json index 8620a16..f966199 100644 --- a/project.lock.json +++ b/project.lock.json @@ -994,6 +994,20 @@ "lib/netstandard1.3/Microsoft.EntityFrameworkCore.dll": {} } }, + "Microsoft.EntityFrameworkCore.Design/1.0.0-preview2-final": { + "type": "package", + "dependencies": { + "Microsoft.EntityFrameworkCore.Design.Core": "1.0.0-preview2-final", + "Microsoft.Extensions.CommandLineUtils": "1.0.0", + "Microsoft.NETCore.App": "1.0.0" + }, + "compile": { + "lib/netcoreapp1.0/Microsoft.EntityFrameworkCore.Design.dll": {} + }, + "runtime": { + "lib/netcoreapp1.0/Microsoft.EntityFrameworkCore.Design.dll": {} + } + }, "Microsoft.EntityFrameworkCore.Design.Core/1.0.0-preview2-final": { "type": "package", "dependencies": { @@ -1039,6 +1053,23 @@ "lib/netstandard1.3/Microsoft.EntityFrameworkCore.Relational.Design.dll": {} } }, + "Microsoft.EntityFrameworkCore.Tools/1.0.0-preview2-final": { + "type": "package", + "dependencies": { + "Microsoft.DotNet.Cli.Utils": "1.0.0-preview2-003121", + "Microsoft.DotNet.ProjectModel": "1.0.0-rc3-003121", + "Microsoft.EntityFrameworkCore.Design": "1.0.0-preview2-final", + "Microsoft.Extensions.CommandLineUtils": "1.0.0", + "Microsoft.NETCore.App": "1.0.0", + "System.Runtime.InteropServices.RuntimeInformation": "4.0.0" + }, + "compile": { + "lib/netcoreapp1.0/dotnet-ef.dll": {} + }, + "runtime": { + "lib/netcoreapp1.0/dotnet-ef.dll": {} + } + }, "Microsoft.Extensions.Caching.Abstractions/1.0.0": { "type": "package", "dependencies": { @@ -4866,6 +4897,22 @@ "lib/netstandard1.3/Microsoft.EntityFrameworkCore.xml" ] }, + "Microsoft.EntityFrameworkCore.Design/1.0.0-preview2-final": { + "sha512": "RhyjntECuOVsrKjgFog9rv+V7oBsxBNxz5NviF7uHvDDQXLyHH3os/CewQxRNsve114AQH5RX/Bww6qAXlSORQ==", + "type": "package", + "path": "Microsoft.EntityFrameworkCore.Design/1.0.0-preview2-final", + "files": [ + "Microsoft.EntityFrameworkCore.Design.1.0.0-preview2-final.nupkg.sha512", + "Microsoft.EntityFrameworkCore.Design.nuspec", + "lib/net451/_._", + "lib/netcore50/_._", + "lib/netcoreapp1.0/Microsoft.EntityFrameworkCore.Design.dll", + "lib/netcoreapp1.0/Microsoft.EntityFrameworkCore.Design.runtimeconfig.json", + "lib/netcoreapp1.0/Microsoft.EntityFrameworkCore.Design.xml", + "runtimes/win7-x64/lib/net451/Microsoft.EntityFrameworkCore.Design.exe", + "runtimes/win7-x86/lib/net451/Microsoft.EntityFrameworkCore.Design.exe" + ] + }, "Microsoft.EntityFrameworkCore.Design.Core/1.0.0-preview2-final": { "sha512": "H3pHksGErQSEwWyvISlDYMslIXftS4XB2m0AvqBS08ECGHagh27mqm/oIyUetzzRad+C2V0zpguJmR14eMiRaA==", "type": "package", @@ -4905,6 +4952,29 @@ "lib/netstandard1.3/Microsoft.EntityFrameworkCore.Relational.Design.xml" ] }, + "Microsoft.EntityFrameworkCore.Tools/1.0.0-preview2-final": { + "sha512": "x+OkqEMERFJY9cAFBZsNPEmZEApAakay2yhE3CD+nyc+HtJDFbyX+spcnOxUjZ2w+YqAdzT6L3DzjlCbRLv9vQ==", + "type": "package", + "path": "Microsoft.EntityFrameworkCore.Tools/1.0.0-preview2-final", + "files": [ + "Microsoft.EntityFrameworkCore.Tools.1.0.0-preview2-final.nupkg.sha512", + "Microsoft.EntityFrameworkCore.Tools.nuspec", + "lib/net451/Microsoft.EntityFrameworkCore.Tools.dll", + "lib/net451/Microsoft.EntityFrameworkCore.Tools.xml", + "lib/netcore50/_._", + "lib/netcoreapp1.0/dotnet-ef.dll", + "lib/netcoreapp1.0/dotnet-ef.runtimeconfig.json", + "lib/netcoreapp1.0/dotnet-ef.xml", + "tools/EntityFrameworkCore.PowerShell2.psd1", + "tools/EntityFrameworkCore.PowerShell2.psm1", + "tools/EntityFrameworkCore.psd1", + "tools/EntityFrameworkCore.psm1", + "tools/OperationHandlers.cs", + "tools/about_EntityFrameworkCore.help.txt", + "tools/init.ps1", + "tools/install.ps1" + ] + }, "Microsoft.Extensions.Caching.Abstractions/1.0.0": { "sha512": "IxlFDVOchL6tdR05bk7EiJvMtvZrVkZXBhkbXqc3GxOHOrHFGcN+92WoWFPeBpdpy8ot/Px5ZdXzt7k+2n1Bdg==", "type": "package", @@ -10486,6 +10556,7 @@ "Microsoft.AspNetCore.Server.IISIntegration >= 1.0.0", "Microsoft.AspNetCore.Server.Kestrel >= 1.0.1", "Microsoft.AspNetCore.StaticFiles >= 1.0.0", + "Microsoft.EntityFrameworkCore.Tools >= 1.0.0-preview2-final", "Microsoft.Extensions.Configuration.EnvironmentVariables >= 1.0.0", "Microsoft.Extensions.Configuration.Json >= 1.0.0", "Microsoft.Extensions.Logging >= 1.0.0", @@ -10515,6 +10586,23 @@ "lib/netcoreapp1.0/dotnet-bundle.dll": {} } }, + "Microsoft.EntityFrameworkCore.Tools/1.0.0-preview2-final": { + "type": "package", + "dependencies": { + "Microsoft.DotNet.Cli.Utils": "1.0.0-preview2-003121", + "Microsoft.DotNet.ProjectModel": "1.0.0-rc3-003121", + "Microsoft.EntityFrameworkCore.Design": "1.0.0-preview2-final", + "Microsoft.Extensions.CommandLineUtils": "1.0.0", + "Microsoft.NETCore.App": "1.0.0", + "System.Runtime.InteropServices.RuntimeInformation": "4.0.0" + }, + "compile": { + "lib/netcoreapp1.0/dotnet-ef.dll": {} + }, + "runtime": { + "lib/netcoreapp1.0/dotnet-ef.dll": {} + } + }, "Microsoft.AspNetCore.Razor.Tools/1.0.0-preview2-final": { "type": "package", "dependencies": { @@ -10556,7 +10644,8 @@ ".NETCoreApp,Version=v1.0": [ "BundlerMinifier.Core >= 2.0.238", "Microsoft.AspNetCore.Razor.Tools >= 1.0.0-preview2-final", - "Microsoft.AspNetCore.Server.IISIntegration.Tools >= 1.0.0-preview2-final" + "Microsoft.AspNetCore.Server.IISIntegration.Tools >= 1.0.0-preview2-final", + "Microsoft.EntityFrameworkCore.Tools >= 1.0.0-preview2-final" ] } } \ No newline at end of file -- libgit2 0.21.4