CSharp/DataModels/User.cs

34 lines
984 B
C#
Raw Normal View History

2018-10-24 19:22:37 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace DataModels
{
public class User
{
int id, idRole;
string name, surname, login, password;
DateTime dateOfBirth;
bool isDeleted;
public int Id { get => id; set => id = value; }
public string Name { get => name; set => name = value; }
public string Surname { get => surname; set => surname = value; }
public string Login { get => login; set => login = value; }
public string Password { get => password; set => password = value; }
public DateTime DateOfBirth { get => dateOfBirth; set => dateOfBirth = value; }
public bool IsDeleted { get => isDeleted; set => isDeleted = value; }
2018-10-24 20:38:52 +02:00
public int IdRole { get => idRole; set => idRole = value; }
2018-10-24 19:22:37 +02:00
string GetDescription()
{
return Login + " " + Name;
}
}
}