/
githubmirror
/
ydb-dotnet-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-dotnet-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/EntityFrameworkCore.Ydb.Samples/Database.Operations.Tutorial/Employee.cs
22 строки
686 B
Kirill Kurdyukov
feat: EF samples & refactoring (#430)
28 май 2025, 19:35
Не верифицирован
28 май 2025, 19:35
942ed4c
Код
Авторство
О чём код?
namespace Database.Operations.Tutorial; public class Employee { public int Id { get; set; } public required string FirstName { get; set; } public required string LastName { get; set; } public required decimal Salary { get; set; } public required DateTime JoinedDate { get; set; } // Foreign key property to the Department public int DepartmentId { get; set; } // Reference navigation to Department public Department Department { get; set; } = null!; // Reference navigation to EmployeeProfile public EmployeeProfile? Profile { get; set; } // collection navigation to Employee public List<Skill> Skills { get; set; } = new(); }