28 lines
618 B
C#
28 lines
618 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace data.DAO
|
|
{
|
|
public class Student
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
public string LastName { get; set; }
|
|
|
|
public string FirstName { get; set; }
|
|
|
|
public string Patronymic { get; set; }
|
|
|
|
public int GroupId { get; set; }
|
|
|
|
public virtual ICollection<Diary> Diaries { get; set; } = new List<Diary>();
|
|
|
|
public virtual Group Group { get; set; }
|
|
}
|
|
}
|