remove the customer class
This commit is contained in:
parent
47c1ac01c1
commit
5fe10fc9de
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -4,7 +4,6 @@ using System.Runtime.Serialization;
|
||||||
namespace Plattform.Models
|
namespace Plattform.Models
|
||||||
{
|
{
|
||||||
[DataContract]
|
[DataContract]
|
||||||
[KnownType(typeof(Customer))]
|
|
||||||
public class Person
|
public class Person
|
||||||
{
|
{
|
||||||
[DataMember]
|
[DataMember]
|
||||||
|
|
Loading…
Reference in New Issue