From 5fe10fc9de495cdc45aea20b75ee333fc0efd0c2 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 21 Aug 2018 21:04:02 +0200 Subject: [PATCH] remove the customer class --- Plattform/Plattform/Models/Customer.cs | 24 ------------------------ Plattform/Plattform/Models/Person.cs | 1 - 2 files changed, 25 deletions(-) delete mode 100644 Plattform/Plattform/Models/Customer.cs diff --git a/Plattform/Plattform/Models/Customer.cs b/Plattform/Plattform/Models/Customer.cs deleted file mode 100644 index aebc1c2..0000000 --- a/Plattform/Plattform/Models/Customer.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System.Runtime.Serialization; -using System.ComponentModel.DataAnnotations.Schema; - -namespace Plattform.Models -{ - [Table("Customers")] - [DataContract] - public class Customer : Person - { - public Customer() { } - public Customer(string firstName, string lastName, Gender gender, - Salutation salutation, string streetName, string - streetNumber, City city) - { - this.FirstName = firstName; - this.LastName = lastName; - this.Gender = gender; - this.Salutation = salutation; - this.StreetName = streetName; - this.StreetNumber = streetNumber; - this.City = city; - } - } -} diff --git a/Plattform/Plattform/Models/Person.cs b/Plattform/Plattform/Models/Person.cs index a82c20e..d514f4c 100644 --- a/Plattform/Plattform/Models/Person.cs +++ b/Plattform/Plattform/Models/Person.cs @@ -4,7 +4,6 @@ using System.Runtime.Serialization; namespace Plattform.Models { [DataContract] - [KnownType(typeof(Customer))] public class Person { [DataMember]