Артем Гавриленко 3 anos atrás
pai
commit
1a1cb0c52d

+ 38 - 14
Kusach/Dispatcher.cs

@@ -1,3 +1,4 @@
+
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан по шаблону.
@@ -7,24 +8,47 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
+
 namespace Kusach
 {
-    using System;
+
+using System;
     using System.Collections.Generic;
     
-    public partial class Dispatcher
+public partial class Dispatcher
+{
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+    public Dispatcher()
     {
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
-        public Dispatcher()
-        {
-            this.RouteList = new HashSet<RouteList>();
-        }
-    
-        public int IdDispatcher { get; set; }
-        public string Login { get; set; }
-        public string Password { get; set; }
-    
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
-        public virtual ICollection<RouteList> RouteList { get; set; }
+
+        this.RouteList = new HashSet<RouteList>();
+
     }
+
+
+    public int IdDispatcher { get; set; }
+
+    public string Login { get; set; }
+
+    public string Password { get; set; }
+
+    public string FName { get; set; }
+
+    public string LName { get; set; }
+
+    public string MName { get; set; }
+
+    public System.DateTime Birthday { get; set; }
+
+    public string PhoneNumber { get; set; }
+
+
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+
+    public virtual ICollection<RouteList> RouteList { get; set; }
+
+}
+
 }

+ 34 - 17
Kusach/Drivers.cs

@@ -1,3 +1,4 @@
+
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан по шаблону.
@@ -7,27 +8,43 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
+
 namespace Kusach
 {
-    using System;
+
+using System;
     using System.Collections.Generic;
     
-    public partial class Drivers
+public partial class Drivers
+{
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+    public Drivers()
     {
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
-        public Drivers()
-        {
-            this.DriversList = new HashSet<DriversList>();
-        }
-    
-        public int IdDriver { get; set; }
-        public int IdTransport { get; set; }
-        public string Surname { get; set; }
-        public string Name { get; set; }
-        public string Patronymic { get; set; }
-    
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
-        public virtual ICollection<DriversList> DriversList { get; set; }
-        public virtual Transport Transport { get; set; }
+
+        this.DriversList = new HashSet<DriversList>();
+
     }
+
+
+    public int IdDriver { get; set; }
+
+    public int IdTransport { get; set; }
+
+    public string Surname { get; set; }
+
+    public string Name { get; set; }
+
+    public string Patronymic { get; set; }
+
+
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+
+    public virtual ICollection<DriversList> DriversList { get; set; }
+
+    public virtual Transport Transport { get; set; }
+
+}
+
 }

+ 21 - 10
Kusach/DriversList.cs

@@ -1,3 +1,4 @@
+
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан по шаблону.
@@ -7,18 +8,28 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
+
 namespace Kusach
 {
-    using System;
+
+using System;
     using System.Collections.Generic;
     
-    public partial class DriversList
-    {
-        public int Id { get; set; }
-        public int IdDriver { get; set; }
-        public int IdRoute { get; set; }
-    
-        public virtual Drivers Drivers { get; set; }
-        public virtual Routes Routes { get; set; }
-    }
+public partial class DriversList
+{
+
+    public int Id { get; set; }
+
+    public int IdDriver { get; set; }
+
+    public int IdRoute { get; set; }
+
+
+
+    public virtual Drivers Drivers { get; set; }
+
+    public virtual Routes Routes { get; set; }
+
+}
+
 }

+ 41 - 24
Kusach/EDM.Context.cs

@@ -1,4 +1,6 @@
-//------------------------------------------------------------------------------
+
+
+//------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан по шаблону.
 //
@@ -7,31 +9,46 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
+
 namespace Kusach
 {
-    using System;
-    using System.Data.Entity;
-    using System.Data.Entity.Infrastructure;
-    
-    public partial class EDM : DbContext
+
+using System;
+using System.Data.Entity;
+using System.Data.Entity.Infrastructure;
+
+
+public partial class EDM : DbContext
+{
+    public EDM()
+        : base("name=EDM")
+    {
+
+    }
+
+    protected override void OnModelCreating(DbModelBuilder modelBuilder)
     {
-        public EDM()
-            : base("name=EDM")
-        {
-        }
-    
-        protected override void OnModelCreating(DbModelBuilder modelBuilder)
-        {
-            throw new UnintentionalCodeFirstException();
-        }
-    
-        public virtual DbSet<Dispatcher> Dispatcher { get; set; }
-        public virtual DbSet<Drivers> Drivers { get; set; }
-        public virtual DbSet<DriversList> DriversList { get; set; }
-        public virtual DbSet<Points> Points { get; set; }
-        public virtual DbSet<PointsList> PointsList { get; set; }
-        public virtual DbSet<RouteList> RouteList { get; set; }
-        public virtual DbSet<Routes> Routes { get; set; }
-        public virtual DbSet<Transport> Transport { get; set; }
+        throw new UnintentionalCodeFirstException();
     }
+
+
+    public virtual DbSet<Dispatcher> Dispatcher { get; set; }
+
+    public virtual DbSet<Drivers> Drivers { get; set; }
+
+    public virtual DbSet<DriversList> DriversList { get; set; }
+
+    public virtual DbSet<Points> Points { get; set; }
+
+    public virtual DbSet<PointsList> PointsList { get; set; }
+
+    public virtual DbSet<RouteList> RouteList { get; set; }
+
+    public virtual DbSet<Routes> Routes { get; set; }
+
+    public virtual DbSet<Transport> Transport { get; set; }
+
 }
+
+}
+

+ 1 - 1
Kusach/EDM.Designer.cs

@@ -1,4 +1,4 @@
-// Создание кода T4 для модели "G:\Kusach\KusachVER2\Kusach\EDM.edmx" включено. 
+// Создание кода T4 для модели "G:\Kusach\Kusach\EDM.edmx" включено. 
 // Чтобы включить формирование кода прежних версий, измените значение свойства "Стратегия создания кода" конструктора
 // на "Legacy ObjectContext". Это свойство доступно в окне "Свойства", если модель
 // открыта в конструкторе.

+ 4 - 1
Kusach/EDM.cs

@@ -1,4 +1,6 @@
-//------------------------------------------------------------------------------
+
+
+//------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан по шаблону.
 //
@@ -7,3 +9,4 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
+

+ 206 - 191
Kusach/EDM.edmx

@@ -4,196 +4,201 @@
   <edmx:Runtime>
     <!-- SSDL content -->
     <edmx:StorageModels>
-    <Schema Namespace="gr692_gavModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2012" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
-  <EntityContainer Name="gr692_gavModelStoreContainer">
-    <EntitySet Name="Dispatcher" EntityType="gr692_gavModel.Store.Dispatcher" store:Type="Tables" Schema="dbo" />
-    <EntitySet Name="Drivers" EntityType="gr692_gavModel.Store.Drivers" store:Type="Tables" Schema="dbo" />
-    <EntitySet Name="DriversList" EntityType="gr692_gavModel.Store.DriversList" store:Type="Tables" Schema="dbo" />
-    <EntitySet Name="Points" EntityType="gr692_gavModel.Store.Points" store:Type="Tables" Schema="dbo" />
-    <EntitySet Name="PointsList" EntityType="gr692_gavModel.Store.PointsList" store:Type="Tables" Schema="dbo" />
-    <EntitySet Name="RouteList" EntityType="gr692_gavModel.Store.RouteList" store:Type="Tables" Schema="dbo" />
-    <EntitySet Name="Routes" EntityType="gr692_gavModel.Store.Routes" store:Type="Tables" Schema="dbo" />
-    <EntitySet Name="Transport" EntityType="gr692_gavModel.Store.Transport" store:Type="Tables" Schema="dbo" />
-    <AssociationSet Name="FK__RouteList__IdRou__6383C8BA" Association="gr692_gavModel.Store.FK__RouteList__IdRou__6383C8BA">
-      <End Role="Dispatcher" EntitySet="Dispatcher" />
-      <End Role="RouteList" EntitySet="RouteList" />
-    </AssociationSet>
-    <AssociationSet Name="FK__DriversLi__IdDri__0C85DE4D" Association="gr692_gavModel.Store.FK__DriversLi__IdDri__0C85DE4D">
-      <End Role="Drivers" EntitySet="Drivers" />
-      <End Role="DriversList" EntitySet="DriversList" />
-    </AssociationSet>
-    <AssociationSet Name="FK_Drivers_Transport" Association="gr692_gavModel.Store.FK_Drivers_Transport">
-      <End Role="Transport" EntitySet="Transport" />
-      <End Role="Drivers" EntitySet="Drivers" />
-    </AssociationSet>
-    <AssociationSet Name="FK__DriversLi__IdRou__68487DD7" Association="gr692_gavModel.Store.FK__DriversLi__IdRou__68487DD7">
-      <End Role="Routes" EntitySet="Routes" />
-      <End Role="DriversList" EntitySet="DriversList" />
-    </AssociationSet>
-    <AssociationSet Name="FK__PointsLis__IdPoi__6477ECF3" Association="gr692_gavModel.Store.FK__PointsLis__IdPoi__6477ECF3">
-      <End Role="Points" EntitySet="Points" />
-      <End Role="PointsList" EntitySet="PointsList" />
-    </AssociationSet>
-    <AssociationSet Name="FK__PointsLis__IdRou__66603565" Association="gr692_gavModel.Store.FK__PointsLis__IdRou__66603565">
-      <End Role="Routes" EntitySet="Routes" />
-      <End Role="PointsList" EntitySet="PointsList" />
-    </AssociationSet>
-    <AssociationSet Name="FK__RouteList__IdRou__628FA481" Association="gr692_gavModel.Store.FK__RouteList__IdRou__628FA481">
-      <End Role="Routes" EntitySet="Routes" />
-      <End Role="RouteList" EntitySet="RouteList" />
-    </AssociationSet>
-  </EntityContainer>
-  <EntityType Name="Dispatcher">
-    <Key>
-      <PropertyRef Name="IdDispatcher" />
-    </Key>
-    <Property Name="IdDispatcher" Type="int" Nullable="false" />
-    <Property Name="Login" Type="nvarchar" Nullable="false" MaxLength="50" />
-    <Property Name="Password" Type="nvarchar" Nullable="false" MaxLength="50" />
-  </EntityType>
-  <EntityType Name="Drivers">
-    <Key>
-      <PropertyRef Name="IdDriver" />
-    </Key>
-    <Property Name="IdDriver" Type="int" Nullable="false" />
-    <Property Name="IdTransport" Type="int" Nullable="false" />
-    <Property Name="Surname" Type="nvarchar" Nullable="false" MaxLength="50" />
-    <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="50" />
-    <Property Name="Patronymic" Type="nvarchar" Nullable="false" MaxLength="50" />
-  </EntityType>
-  <EntityType Name="DriversList">
-    <Key>
-      <PropertyRef Name="Id" />
-    </Key>
-    <Property Name="Id" Type="int" Nullable="false" />
-    <Property Name="IdDriver" Type="int" Nullable="false" />
-    <Property Name="IdRoute" Type="int" Nullable="false" />
-  </EntityType>
-  <EntityType Name="Points">
-    <Key>
-      <PropertyRef Name="IdPoint" />
-    </Key>
-    <Property Name="IdPoint" Type="int" Nullable="false" />
-    <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="50" />
-    <Property Name="location" Type="nvarchar" Nullable="false" MaxLength="150" />
-  </EntityType>
-  <EntityType Name="PointsList">
-    <Key>
-      <PropertyRef Name="Id" />
-    </Key>
-    <Property Name="Id" Type="int" Nullable="false" />
-    <Property Name="IdPoint" Type="int" Nullable="false" />
-    <Property Name="IdRoute" Type="int" Nullable="false" />
-  </EntityType>
-  <EntityType Name="RouteList">
-    <Key>
-      <PropertyRef Name="Id" />
-    </Key>
-    <Property Name="Id" Type="int" Nullable="false" />
-    <Property Name="IdRoute" Type="int" Nullable="false" />
-    <Property Name="IdDispatcher" Type="int" Nullable="false" />
-  </EntityType>
-  <EntityType Name="Routes">
-    <Key>
-      <PropertyRef Name="IdRoute" />
-    </Key>
-    <Property Name="IdRoute" Type="int" Nullable="false" />
-    <Property Name="IdDriver" Type="int" Nullable="false" />
-    <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="50" />
-  </EntityType>
-  <EntityType Name="Transport">
-    <Key>
-      <PropertyRef Name="IdTransport" />
-    </Key>
-    <Property Name="IdTransport" Type="int" Nullable="false" />
-    <Property Name="NameOfTransport" Type="nvarchar" Nullable="false" MaxLength="50" />
-    <Property Name="NumberPlate" Type="nvarchar" Nullable="false" MaxLength="10" />
-  </EntityType>
-  <Association Name="FK__RouteList__IdRou__6383C8BA">
-    <End Role="Dispatcher" Type="gr692_gavModel.Store.Dispatcher" Multiplicity="1" />
-    <End Role="RouteList" Type="gr692_gavModel.Store.RouteList" Multiplicity="*" />
-    <ReferentialConstraint>
-      <Principal Role="Dispatcher">
-        <PropertyRef Name="IdDispatcher" />
-      </Principal>
-      <Dependent Role="RouteList">
-        <PropertyRef Name="IdRoute" />
-      </Dependent>
-    </ReferentialConstraint>
-  </Association>
-  <Association Name="FK__DriversLi__IdDri__0C85DE4D">
-    <End Role="Drivers" Type="gr692_gavModel.Store.Drivers" Multiplicity="1" />
-    <End Role="DriversList" Type="gr692_gavModel.Store.DriversList" Multiplicity="*" />
-    <ReferentialConstraint>
-      <Principal Role="Drivers">
-        <PropertyRef Name="IdDriver" />
-      </Principal>
-      <Dependent Role="DriversList">
-        <PropertyRef Name="IdDriver" />
-      </Dependent>
-    </ReferentialConstraint>
-  </Association>
-  <Association Name="FK_Drivers_Transport">
-    <End Role="Transport" Type="gr692_gavModel.Store.Transport" Multiplicity="1" />
-    <End Role="Drivers" Type="gr692_gavModel.Store.Drivers" Multiplicity="*" />
-    <ReferentialConstraint>
-      <Principal Role="Transport">
-        <PropertyRef Name="IdTransport" />
-      </Principal>
-      <Dependent Role="Drivers">
-        <PropertyRef Name="IdTransport" />
-      </Dependent>
-    </ReferentialConstraint>
-  </Association>
-  <Association Name="FK__DriversLi__IdRou__68487DD7">
-    <End Role="Routes" Type="gr692_gavModel.Store.Routes" Multiplicity="1" />
-    <End Role="DriversList" Type="gr692_gavModel.Store.DriversList" Multiplicity="*" />
-    <ReferentialConstraint>
-      <Principal Role="Routes">
-        <PropertyRef Name="IdRoute" />
-      </Principal>
-      <Dependent Role="DriversList">
-        <PropertyRef Name="IdRoute" />
-      </Dependent>
-    </ReferentialConstraint>
-  </Association>
-  <Association Name="FK__PointsLis__IdPoi__6477ECF3">
-    <End Role="Points" Type="gr692_gavModel.Store.Points" Multiplicity="1" />
-    <End Role="PointsList" Type="gr692_gavModel.Store.PointsList" Multiplicity="*" />
-    <ReferentialConstraint>
-      <Principal Role="Points">
-        <PropertyRef Name="IdPoint" />
-      </Principal>
-      <Dependent Role="PointsList">
-        <PropertyRef Name="IdPoint" />
-      </Dependent>
-    </ReferentialConstraint>
-  </Association>
-  <Association Name="FK__PointsLis__IdRou__66603565">
-    <End Role="Routes" Type="gr692_gavModel.Store.Routes" Multiplicity="1" />
-    <End Role="PointsList" Type="gr692_gavModel.Store.PointsList" Multiplicity="*" />
-    <ReferentialConstraint>
-      <Principal Role="Routes">
-        <PropertyRef Name="IdRoute" />
-      </Principal>
-      <Dependent Role="PointsList">
-        <PropertyRef Name="IdRoute" />
-      </Dependent>
-    </ReferentialConstraint>
-  </Association>
-  <Association Name="FK__RouteList__IdRou__628FA481">
-    <End Role="Routes" Type="gr692_gavModel.Store.Routes" Multiplicity="1" />
-    <End Role="RouteList" Type="gr692_gavModel.Store.RouteList" Multiplicity="*" />
-    <ReferentialConstraint>
-      <Principal Role="Routes">
-        <PropertyRef Name="IdRoute" />
-      </Principal>
-      <Dependent Role="RouteList">
-        <PropertyRef Name="IdRoute" />
-      </Dependent>
-    </ReferentialConstraint>
-  </Association>
-</Schema></edmx:StorageModels>
+    <Schema Namespace="gr692_gavModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
+        <EntityType Name="Dispatcher">
+          <Key>
+            <PropertyRef Name="IdDispatcher" />
+          </Key>
+          <Property Name="IdDispatcher" Type="int" Nullable="false" />
+          <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="FName" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="LName" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="MName" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Birthday" Type="date" Nullable="false" />
+          <Property Name="PhoneNumber" Type="nvarchar" MaxLength="10" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Drivers">
+          <Key>
+            <PropertyRef Name="IdDriver" />
+          </Key>
+          <Property Name="IdDriver" Type="int" Nullable="false" />
+          <Property Name="IdTransport" Type="int" Nullable="false" />
+          <Property Name="Surname" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Patronymic" Type="nvarchar" MaxLength="50" Nullable="false" />
+        </EntityType>
+        <EntityType Name="DriversList">
+          <Key>
+            <PropertyRef Name="Id" />
+          </Key>
+          <Property Name="Id" Type="int" Nullable="false" />
+          <Property Name="IdDriver" Type="int" Nullable="false" />
+          <Property Name="IdRoute" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Points">
+          <Key>
+            <PropertyRef Name="IdPoint" />
+          </Key>
+          <Property Name="IdPoint" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="location" Type="nvarchar" MaxLength="150" Nullable="false" />
+        </EntityType>
+        <EntityType Name="PointsList">
+          <Key>
+            <PropertyRef Name="Id" />
+          </Key>
+          <Property Name="Id" Type="int" Nullable="false" />
+          <Property Name="IdPoint" Type="int" Nullable="false" />
+          <Property Name="IdRoute" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="RouteList">
+          <Key>
+            <PropertyRef Name="Id" />
+          </Key>
+          <Property Name="Id" Type="int" Nullable="false" />
+          <Property Name="IdRoute" Type="int" Nullable="false" />
+          <Property Name="IdDispatcher" Type="int" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Routes">
+          <Key>
+            <PropertyRef Name="IdRoute" />
+          </Key>
+          <Property Name="IdRoute" Type="int" Nullable="false" />
+          <Property Name="IdDriver" Type="int" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Transport">
+          <Key>
+            <PropertyRef Name="IdTransport" />
+          </Key>
+          <Property Name="IdTransport" Type="int" Nullable="false" />
+          <Property Name="NameOfTransport" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="NumberPlate" Type="nvarchar" MaxLength="10" Nullable="false" />
+        </EntityType>
+        <Association Name="FK__DriversLi__IdDri__0C85DE4D">
+          <End Role="Drivers" Type="Self.Drivers" Multiplicity="1" />
+          <End Role="DriversList" Type="Self.DriversList" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Drivers">
+              <PropertyRef Name="IdDriver" />
+            </Principal>
+            <Dependent Role="DriversList">
+              <PropertyRef Name="IdDriver" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__DriversLi__IdRou__68487DD7">
+          <End Role="Routes" Type="Self.Routes" Multiplicity="1" />
+          <End Role="DriversList" Type="Self.DriversList" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Routes">
+              <PropertyRef Name="IdRoute" />
+            </Principal>
+            <Dependent Role="DriversList">
+              <PropertyRef Name="IdRoute" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__PointsLis__IdPoi__6477ECF3">
+          <End Role="Points" Type="Self.Points" Multiplicity="1" />
+          <End Role="PointsList" Type="Self.PointsList" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Points">
+              <PropertyRef Name="IdPoint" />
+            </Principal>
+            <Dependent Role="PointsList">
+              <PropertyRef Name="IdPoint" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__PointsLis__IdRou__66603565">
+          <End Role="Routes" Type="Self.Routes" Multiplicity="1" />
+          <End Role="PointsList" Type="Self.PointsList" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Routes">
+              <PropertyRef Name="IdRoute" />
+            </Principal>
+            <Dependent Role="PointsList">
+              <PropertyRef Name="IdRoute" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__RouteList__IdRou__628FA481">
+          <End Role="Routes" Type="Self.Routes" Multiplicity="1" />
+          <End Role="RouteList" Type="Self.RouteList" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Routes">
+              <PropertyRef Name="IdRoute" />
+            </Principal>
+            <Dependent Role="RouteList">
+              <PropertyRef Name="IdRoute" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK__RouteList__IdRou__6383C8BA">
+          <End Role="Dispatcher" Type="Self.Dispatcher" Multiplicity="1" />
+          <End Role="RouteList" Type="Self.RouteList" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Dispatcher">
+              <PropertyRef Name="IdDispatcher" />
+            </Principal>
+            <Dependent Role="RouteList">
+              <PropertyRef Name="IdRoute" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <Association Name="FK_Drivers_Transport">
+          <End Role="Transport" Type="Self.Transport" Multiplicity="1" />
+          <End Role="Drivers" Type="Self.Drivers" Multiplicity="*" />
+          <ReferentialConstraint>
+            <Principal Role="Transport">
+              <PropertyRef Name="IdTransport" />
+            </Principal>
+            <Dependent Role="Drivers">
+              <PropertyRef Name="IdTransport" />
+            </Dependent>
+          </ReferentialConstraint>
+        </Association>
+        <EntityContainer Name="gr692_gavModelStoreContainer">
+          <EntitySet Name="Dispatcher" EntityType="Self.Dispatcher" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Drivers" EntityType="Self.Drivers" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="DriversList" EntityType="Self.DriversList" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Points" EntityType="Self.Points" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="PointsList" EntityType="Self.PointsList" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="RouteList" EntityType="Self.RouteList" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Routes" EntityType="Self.Routes" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Transport" EntityType="Self.Transport" Schema="dbo" store:Type="Tables" />
+          <AssociationSet Name="FK__DriversLi__IdDri__0C85DE4D" Association="Self.FK__DriversLi__IdDri__0C85DE4D">
+            <End Role="Drivers" EntitySet="Drivers" />
+            <End Role="DriversList" EntitySet="DriversList" />
+          </AssociationSet>
+          <AssociationSet Name="FK__DriversLi__IdRou__68487DD7" Association="Self.FK__DriversLi__IdRou__68487DD7">
+            <End Role="Routes" EntitySet="Routes" />
+            <End Role="DriversList" EntitySet="DriversList" />
+          </AssociationSet>
+          <AssociationSet Name="FK__PointsLis__IdPoi__6477ECF3" Association="Self.FK__PointsLis__IdPoi__6477ECF3">
+            <End Role="Points" EntitySet="Points" />
+            <End Role="PointsList" EntitySet="PointsList" />
+          </AssociationSet>
+          <AssociationSet Name="FK__PointsLis__IdRou__66603565" Association="Self.FK__PointsLis__IdRou__66603565">
+            <End Role="Routes" EntitySet="Routes" />
+            <End Role="PointsList" EntitySet="PointsList" />
+          </AssociationSet>
+          <AssociationSet Name="FK__RouteList__IdRou__628FA481" Association="Self.FK__RouteList__IdRou__628FA481">
+            <End Role="Routes" EntitySet="Routes" />
+            <End Role="RouteList" EntitySet="RouteList" />
+          </AssociationSet>
+          <AssociationSet Name="FK__RouteList__IdRou__6383C8BA" Association="Self.FK__RouteList__IdRou__6383C8BA">
+            <End Role="Dispatcher" EntitySet="Dispatcher" />
+            <End Role="RouteList" EntitySet="RouteList" />
+          </AssociationSet>
+          <AssociationSet Name="FK_Drivers_Transport" Association="Self.FK_Drivers_Transport">
+            <End Role="Transport" EntitySet="Transport" />
+            <End Role="Drivers" EntitySet="Drivers" />
+          </AssociationSet>
+        </EntityContainer>
+      </Schema></edmx:StorageModels>
     <!-- CSDL content -->
     <edmx:ConceptualModels>
       <Schema Namespace="gr692_gavModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
@@ -205,6 +210,11 @@
           <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
           <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
           <NavigationProperty Name="RouteList" Relationship="Self.FK__RouteList__IdRou__6383C8BA" FromRole="Dispatcher" ToRole="RouteList" />
+          <Property Name="FName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="LName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="MName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
+          <Property Name="Birthday" Type="DateTime" Nullable="false" Precision="0" />
+          <Property Name="PhoneNumber" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
         </EntityType>
         <EntityType Name="Drivers">
           <Key>
@@ -408,7 +418,12 @@
     <EntitySetMapping Name="Dispatcher">
       <EntityTypeMapping TypeName="IsTypeOf(gr692_gavModel.Dispatcher)">
         <MappingFragment StoreEntitySet="Dispatcher">
-          <ScalarProperty Name="IdDispatcher" ColumnName="IdDispatcher" />
+          <ScalarProperty Name="PhoneNumber" ColumnName="PhoneNumber" />
+                <ScalarProperty Name="Birthday" ColumnName="Birthday" />
+                <ScalarProperty Name="MName" ColumnName="MName" />
+                <ScalarProperty Name="LName" ColumnName="LName" />
+                <ScalarProperty Name="FName" ColumnName="FName" />
+                <ScalarProperty Name="IdDispatcher" ColumnName="IdDispatcher" />
           <ScalarProperty Name="Login" ColumnName="Login" />
           <ScalarProperty Name="Password" ColumnName="Password" />
         </MappingFragment>

+ 1 - 1
Kusach/EDM.edmx.diagram

@@ -5,7 +5,7 @@
     <!-- Diagram content (shape and connector positions) -->
     <edmx:Diagrams>
       <Diagram DiagramId="dabec44b8a634331ae1f79524a76b8ac" Name="Diagram1" ZoomLevel="94">
-        <EntityTypeShape EntityType="gr692_gavModel.Dispatcher" Width="1.5" PointX="4.5" PointY="5.375" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr692_gavModel.Dispatcher" Width="1.5" PointX="4.5" PointY="5.125" IsExpanded="true" />
         <EntityTypeShape EntityType="gr692_gavModel.Drivers" Width="1.5" PointX="7.875" PointY="7.875" IsExpanded="true" />
         <EntityTypeShape EntityType="gr692_gavModel.DriversList" Width="1.5" PointX="7.875" PointY="5.25" IsExpanded="true" />
         <EntityTypeShape EntityType="gr692_gavModel.Points" Width="1.5" PointX="7.25" PointY="2.125" IsExpanded="true" />

+ 17 - 9
Kusach/LogWindow.xaml.cs

@@ -1,4 +1,5 @@
-using System.Linq;
+using System;
+using System.Linq;
 using System.Windows;
 
 namespace Kusach
@@ -18,16 +19,23 @@ namespace Kusach
         }
         private void LogButton_Click(object sender, RoutedEventArgs e)
         {
-            if (logbox.Text == "" || passbox.Password == "")
-                MessageBox.Show("Поля не могут быть пустыми.");
-            else if (cnt.db.Dispatcher.Select(item => item.Login + item.Password).Contains(logbox.Text + Encrypt.GetHash(passbox.Password)))
+            try 
             {
-                DataWindow dw = new DataWindow();
-                dw.Show();
-                this.Close();
+                if (logbox.Text == "" || passbox.Password == "")
+                    MessageBox.Show("Поля не могут быть пустыми.");
+                else if (cnt.db.Dispatcher.Select(item => item.Login + item.Password).Contains(logbox.Text + Encrypt.GetHash(passbox.Password)))
+                {
+                    DataWindow dw = new DataWindow();
+                    dw.Show();
+                    this.Close();
+                }
+                else
+                    MessageBox.Show("Неверный логин или пароль");
+            } catch (Exception ex)
+            {
+                MessageBox.Show($"Произошла ошибка. : {ex}");
             }
-            else
-                MessageBox.Show("Неверный логин или пароль");
+            
         }
         private void RegButton_Click(object sender, RoutedEventArgs e)
         {

+ 28 - 14
Kusach/Points.cs

@@ -1,3 +1,4 @@
+
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан по шаблону.
@@ -7,24 +8,37 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
+
 namespace Kusach
 {
-    using System;
+
+using System;
     using System.Collections.Generic;
     
-    public partial class Points
+public partial class Points
+{
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+    public Points()
     {
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
-        public Points()
-        {
-            this.PointsList = new HashSet<PointsList>();
-        }
-    
-        public int IdPoint { get; set; }
-        public string Name { get; set; }
-        public string location { get; set; }
-    
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
-        public virtual ICollection<PointsList> PointsList { get; set; }
+
+        this.PointsList = new HashSet<PointsList>();
+
     }
+
+
+    public int IdPoint { get; set; }
+
+    public string Name { get; set; }
+
+    public string location { get; set; }
+
+
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+
+    public virtual ICollection<PointsList> PointsList { get; set; }
+
+}
+
 }

+ 21 - 10
Kusach/PointsList.cs

@@ -1,3 +1,4 @@
+
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан по шаблону.
@@ -7,18 +8,28 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
+
 namespace Kusach
 {
-    using System;
+
+using System;
     using System.Collections.Generic;
     
-    public partial class PointsList
-    {
-        public int Id { get; set; }
-        public int IdPoint { get; set; }
-        public int IdRoute { get; set; }
-    
-        public virtual Points Points { get; set; }
-        public virtual Routes Routes { get; set; }
-    }
+public partial class PointsList
+{
+
+    public int Id { get; set; }
+
+    public int IdPoint { get; set; }
+
+    public int IdRoute { get; set; }
+
+
+
+    public virtual Points Points { get; set; }
+
+    public virtual Routes Routes { get; set; }
+
+}
+
 }

+ 78 - 7
Kusach/RegWindow.xaml

@@ -6,19 +6,19 @@
         xmlns:local="clr-namespace:Kusach"
         mc:Ignorable="d"
         ResizeMode="NoResize"
-        Title="Окно регистрации" Height="350" Width="600" WindowStartupLocation="CenterScreen">
+        Title="Окно регистрации" Height="730" Width="600" WindowStartupLocation="CenterScreen">
     <Grid>
         <Label 
             Content="Логин:" 
             HorizontalAlignment="Left" 
-            Margin="180,45,0,0" 
+            Margin="143,35,0,0" 
             VerticalAlignment="Top" 
             Height="40" 
             Width="240"/>
         <TextBox 
             x:Name="logbox" 
             HorizontalAlignment="Left" 
-            Margin="179,85,0,0" 
+            Margin="142,75,0,0" 
             TextWrapping="Wrap" 
             VerticalAlignment="Top" 
             Height="40" 
@@ -26,14 +26,14 @@
         <Label 
             Content="Пароль:" 
             HorizontalAlignment="Left" 
-            Margin="180,125,0,0"
+            Margin="143,115,0,0"
             VerticalAlignment="Top" 
             Height="40" 
             Width="240"/>
         <TextBox 
             x:Name="passbox" 
             HorizontalAlignment="Left" 
-            Margin="179,165,0,0" 
+            Margin="142,155,0,0" 
             VerticalAlignment="Top" 
             Height="40" 
             Width="240"/>
@@ -41,7 +41,7 @@
             x:Name="RegButton" 
             Content="Регистрация" 
             HorizontalAlignment="Left"
-            Margin="317,238,0,0" 
+            Margin="298,651,0,0" 
             VerticalAlignment="Top" 
             Height="40" 
             Width="150" 
@@ -50,10 +50,81 @@
             x:Name="BackButton" 
             Content="Назад" 
             HorizontalAlignment="Left" 
-            Margin="140,238,0,0" 
+            Margin="121,651,0,0" 
             VerticalAlignment="Top" 
             Height="40" 
             Width="150" 
             Click="BackButton_Click"/>
+        <Label 
+            Content="Имя:" 
+            HorizontalAlignment="Left" 
+            Margin="143,195,0,0" 
+            VerticalAlignment="Top" 
+            Height="40" 
+            Width="240"/>
+        <TextBox 
+            x:Name="FNameBox" 
+            HorizontalAlignment="Left" 
+            Margin="142,235,0,0" 
+            TextWrapping="Wrap" 
+            VerticalAlignment="Top" 
+            Height="40" 
+            Width="240"/>
+        <Label 
+            Content="Фамилия:" 
+            HorizontalAlignment="Left" 
+            Margin="143,275,0,0"
+            VerticalAlignment="Top" 
+            Height="40" 
+            Width="240"/>
+        <TextBox 
+            x:Name="LNameBox" 
+            HorizontalAlignment="Left" 
+            Margin="142,315,0,0" 
+            VerticalAlignment="Top" 
+            Height="40" 
+            Width="240"/>
+        <Label 
+            Content="Отчество:" 
+            HorizontalAlignment="Left" 
+            Margin="143,356,0,0"
+            VerticalAlignment="Top" 
+            Height="40" 
+            Width="240"/>
+        <TextBox 
+            x:Name="MNameBox" 
+            HorizontalAlignment="Left" 
+            Margin="142,396,0,0" 
+            VerticalAlignment="Top" 
+            Height="40" 
+            Width="240"/>
+        <Label 
+            Content="День рождения:" 
+            HorizontalAlignment="Left" 
+            Margin="144,436,0,0"
+            VerticalAlignment="Top" 
+            Height="40" 
+            Width="240"/>
+        <TextBox 
+            x:Name="BirthdayBox" 
+            HorizontalAlignment="Left" 
+            Margin="143,476,0,0" 
+            VerticalAlignment="Top" 
+            Height="40" 
+            Width="240"/>
+        <Label 
+            Content="Телефон:" 
+            HorizontalAlignment="Left" 
+            Margin="143,516,0,0"
+            VerticalAlignment="Top" 
+            Height="40" 
+            Width="240"/>
+        <TextBox 
+            x:Name="PhoneBox" 
+            HorizontalAlignment="Left" 
+            Margin="142,556,0,0" 
+            VerticalAlignment="Top" 
+            Height="40" 
+            Width="240"/>
     </Grid>
 </Window>

+ 31 - 17
Kusach/RegWindow.xaml.cs

@@ -1,4 +1,5 @@
-using System.Linq;
+using System;
+using System.Linq;
 using System.Windows;
 
 namespace Kusach
@@ -15,25 +16,38 @@ namespace Kusach
 
         private void RegButton_Click(object sender, RoutedEventArgs e)
         {
-            if (logbox.Text == "" || passbox.Text== "")
-                MessageBox.Show("Поля не могут быть пустыми.");
-            else if (cnt.db.Dispatcher.Select(item => item.Login).Contains(logbox.Text))
-                MessageBox.Show("Данный логин уже занят");
-            else
+            try
             {
-                Dispatcher newUser = new Dispatcher()
+                if (logbox.Text == "" || passbox.Text == "")
+                    MessageBox.Show("Поля не могут быть пустыми.");
+                else if (cnt.db.Dispatcher.Select(item => item.Login).Contains(logbox.Text))
+                    MessageBox.Show("Данный логин уже занят");
+                else
                 {
-                    IdDispatcher = cnt.db.Dispatcher.Count()+1,
-                    Login = logbox.Text,
-                    Password = Encrypt.GetHash(passbox.Text)
-                };
-                cnt.db.Dispatcher.Add(newUser);
-                cnt.db.SaveChanges();
-                MessageBox.Show("Вы успешно зарегистрировались");
-                DataWindow dw = new DataWindow();
-                dw.Show();
-                this.Close();
+                    Dispatcher newUser = new Dispatcher()
+                    {
+                        IdDispatcher = cnt.db.Dispatcher.Count() + 1,
+                        Login = logbox.Text,
+                        Password = Encrypt.GetHash(passbox.Text),
+                        FName = FNameBox.Text,
+                        LName = LNameBox.Text,
+                        MName = MNameBox.Text,
+                        Birthday = Convert.ToDateTime(BirthdayBox.Text),
+                        PhoneNumber = PhoneBox.Text
+                    };
+                    cnt.db.Dispatcher.Add(newUser);
+                    cnt.db.SaveChanges();
+                    MessageBox.Show("Вы успешно зарегистрировались");
+                    DataWindow dw = new DataWindow();
+                    dw.Show();
+                    this.Close();
+                }
             }
+            catch (Exception ex)
+            {
+                MessageBox.Show($"Произошла ошибка. : {ex}");
+            }
+            
         }
 
         private void BackButton_Click(object sender, RoutedEventArgs e)

+ 21 - 10
Kusach/RouteList.cs

@@ -1,3 +1,4 @@
+
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан по шаблону.
@@ -7,18 +8,28 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
+
 namespace Kusach
 {
-    using System;
+
+using System;
     using System.Collections.Generic;
     
-    public partial class RouteList
-    {
-        public int Id { get; set; }
-        public int IdRoute { get; set; }
-        public int IdDispatcher { get; set; }
-    
-        public virtual Dispatcher Dispatcher { get; set; }
-        public virtual Routes Routes { get; set; }
-    }
+public partial class RouteList
+{
+
+    public int Id { get; set; }
+
+    public int IdRoute { get; set; }
+
+    public int IdDispatcher { get; set; }
+
+
+
+    public virtual Dispatcher Dispatcher { get; set; }
+
+    public virtual Routes Routes { get; set; }
+
+}
+
 }

+ 40 - 20
Kusach/Routes.cs

@@ -1,3 +1,4 @@
+
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан по шаблону.
@@ -7,30 +8,49 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
+
 namespace Kusach
 {
-    using System;
+
+using System;
     using System.Collections.Generic;
     
-    public partial class Routes
+public partial class Routes
+{
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+    public Routes()
     {
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
-        public Routes()
-        {
-            this.DriversList = new HashSet<DriversList>();
-            this.PointsList = new HashSet<PointsList>();
-            this.RouteList = new HashSet<RouteList>();
-        }
-    
-        public int IdRoute { get; set; }
-        public int IdDriver { get; set; }
-        public string Name { get; set; }
-    
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
-        public virtual ICollection<DriversList> DriversList { get; set; }
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
-        public virtual ICollection<PointsList> PointsList { get; set; }
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
-        public virtual ICollection<RouteList> RouteList { get; set; }
+
+        this.DriversList = new HashSet<DriversList>();
+
+        this.PointsList = new HashSet<PointsList>();
+
+        this.RouteList = new HashSet<RouteList>();
+
     }
+
+
+    public int IdRoute { get; set; }
+
+    public int IdDriver { get; set; }
+
+    public string Name { get; set; }
+
+
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+
+    public virtual ICollection<DriversList> DriversList { get; set; }
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+
+    public virtual ICollection<PointsList> PointsList { get; set; }
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+
+    public virtual ICollection<RouteList> RouteList { get; set; }
+
+}
+
 }

+ 28 - 14
Kusach/Transport.cs

@@ -1,3 +1,4 @@
+
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан по шаблону.
@@ -7,24 +8,37 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
+
 namespace Kusach
 {
-    using System;
+
+using System;
     using System.Collections.Generic;
     
-    public partial class Transport
+public partial class Transport
+{
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+    public Transport()
     {
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
-        public Transport()
-        {
-            this.Drivers = new HashSet<Drivers>();
-        }
-    
-        public int IdTransport { get; set; }
-        public string NameOfTransport { get; set; }
-        public string NumberPlate { get; set; }
-    
-        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
-        public virtual ICollection<Drivers> Drivers { get; set; }
+
+        this.Drivers = new HashSet<Drivers>();
+
     }
+
+
+    public int IdTransport { get; set; }
+
+    public string NameOfTransport { get; set; }
+
+    public string NumberPlate { get; set; }
+
+
+
+    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
+
+    public virtual ICollection<Drivers> Drivers { get; set; }
+
+}
+
 }

+ 7 - 0
SQLQuery1.sql

@@ -0,0 +1,7 @@
+select * from Routes
+select * from PointsList
+select * from Points
+
+select Routes.Name, Points.Name, Points.location from Routes, PointsList, Points
+where Routes.IdRoute = PointsList.IdRoute and PointsList.IdPoint = Points.IdPoint
+order by Routes.Name