remove the oboslete marker

It caused problems when using inheritance
This commit is contained in:
Andreas Zweili 2018-05-22 19:18:58 +02:00
parent e7faf6ce82
commit 774f2eafcd
9 changed files with 0 additions and 10 deletions

View File

@ -24,9 +24,7 @@ namespace Server.Models
[DataMember]
public virtual Country Country { get => _Counry; set => _Counry = value; }
[Obsolete("Only needed for serialization and materialization", true)]
public City() { }
public City (string name, int zipCode, Country country)
{
this.Name = name;

View File

@ -21,7 +21,6 @@ namespace Server.Models
[DataMember]
public virtual Status Status { get => _Status; set => _Status = value; }
[Obsolete("Only needed for serialization and materialization", true)]
public Doctor() { }
public Doctor (Person person, Status status)
{

View File

@ -27,7 +27,6 @@ namespace Server.Models
[DataMember]
public virtual Result Result { get => _Result; set => _Result = value; }
[Obsolete("Only needed for serialization and materialization", true)]
public Exam() { }
public Exam (Doctor doctor, Person patient, Result result)
{

View File

@ -18,7 +18,6 @@ namespace Server.Models
[DataMember]
public string Name { get => _Name; set => _Name = value; }
[Obsolete("Only needed for serialization and materialization", true)]
public Gender() { }
public Gender (string name)
{

View File

@ -33,7 +33,6 @@ namespace Server.Models
[DataMember]
public virtual City City { get => _City; set => _City = value; }
[Obsolete("Only needed for serialization and materialization", true)]
public Person() { }
public Person (string firstName, string lastName, Gender gender, Salutation salutation,
string streetName, City city)

View File

@ -27,7 +27,6 @@ namespace Server.Models
[DataMember]
public bool Infected { get => _Infected; set => _Infected = value; }
[Obsolete("Only needed for serialization and materialization", true)]
public Result() { }
public Result (string name, string description, Strain strain, bool infected)
{

View File

@ -18,7 +18,6 @@ namespace Server.Models
[DataMember]
public string Name { get => _Name; set => _Name = value; }
[Obsolete("Only needed for serialization and materialization", true)]
public Salutation() { }
public Salutation (string name)
{

View File

@ -18,7 +18,6 @@ namespace Server.Models
[DataMember]
public string Name { get => _Name; set => _Name = value; }
[Obsolete("Only needed for serialization and materialization", true)]
public Status() { }
public Status (string name)
{

View File

@ -18,7 +18,6 @@ namespace Server.Models
[DataMember]
public string Name { get => _Name; set => _Name = value; }
[Obsolete("Only needed for serialization and materialization", true)]
public Strain() { }
public Strain (string name)
{