remove the oboslete marker
It caused problems when using inheritance
This commit is contained in:
parent
e7faf6ce82
commit
774f2eafcd
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue