43 lines
798 B
C#
43 lines
798 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Core.Entities;
|
|
|
|
public class Doctor
|
|
{
|
|
public Doctor()
|
|
{
|
|
Id = Guid.NewGuid();
|
|
}
|
|
|
|
[Key] public Guid Id { get; private set; }
|
|
|
|
public string? Name { get; private set; }
|
|
public string? Email { get; private set; }
|
|
public string? Password { get; private set; }
|
|
public string? Description { get; private set; }
|
|
|
|
public void SetId(Guid id)
|
|
{
|
|
Id = id;
|
|
}
|
|
|
|
public void SetName(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
public void SetEmail(string email)
|
|
{
|
|
Email = email;
|
|
}
|
|
|
|
public void SetPassword(string password)
|
|
{
|
|
Password = password;
|
|
}
|
|
|
|
public void SetDescription(string? description)
|
|
{
|
|
Description = description;
|
|
}
|
|
} |