move doctors to their own table

This commit is contained in:
Andreas Zweili 2018-07-28 16:30:00 +02:00
parent d4cf23c9ff
commit c9749047b5
1 changed files with 2 additions and 5 deletions

View File

@ -1,15 +1,12 @@
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations.Schema;
namespace Server.Models
{
[Table("Doctors")]
[DataContract]
public class Doctor : Person
{
private int _DoctorID;
[DataMember]
public int DoctorID { get => _DoctorID; set => _DoctorID = value; }
public Doctor() { }
public Doctor(string firstName, string lastName, Gender gender, Salutation salutation,
string streetName, string streetNumber, City city)