From 6d4af6d37653332899697f50b9c942245ef83ef2 Mon Sep 17 00:00:00 2001 From: kp9lk Date: Fri, 11 Sep 2026 15:43:55 +0300 Subject: [PATCH] fixed enters --- base-api/lesson1.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base-api/lesson1.md b/base-api/lesson1.md index cf90f48..ffc379f 100644 --- a/base-api/lesson1.md +++ b/base-api/lesson1.md @@ -62,7 +62,10 @@ ## 4. Эталонный пример реализации связующей сущности Используйте данный шаблон в качестве образца для проектирования промежуточных сущностей с составными ключами в EF Core 10: ``` -using System.ComponentModel.DataAnnotations;using System.ComponentModel.DataAnnotations.Schema;using Microsoft.EntityFrameworkCore; // Необходим для работы [PrimaryKey] +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; +// Необходим для работы [PrimaryKey] namespace PokemonApi.Models; // 1. Указываем составной первичный ключ из двух ID прямо над классом [Table("PokemonTypes")]