added ex_042_005_Keys_data_annotations

EFCore3_Reforged
Marc CHEVALDONNE 6 years ago
parent de33f882a7
commit 68c5221270

@ -564,7 +564,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ex_042_005_ValueGeneration_
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ex_042_006_ValueGeneration_FluentAPI", "p08_BDD_EntityFramework\ex_042_006_ValueGeneration_FluentAPI\ex_042_006_ValueGeneration_FluentAPI.csproj", "{BAB08578-898E-48C5-8470-6AC72D49B0D8}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ex_042_006_ValueGeneration_FluentAPI", "p08_BDD_EntityFramework\ex_042_006_ValueGeneration_FluentAPI\ex_042_006_ValueGeneration_FluentAPI.csproj", "{BAB08578-898E-48C5-8470-6AC72D49B0D8}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_042_004_Keys_conventions", "p08_BDD_EntityFramework\ex_042_004_Keys_conventions\ex_042_004_Keys_conventions.csproj", "{DBEE3EA3-9B59-4688-B7D7-6A4ABA6E1991}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ex_042_004_Keys_conventions", "p08_BDD_EntityFramework\ex_042_004_Keys_conventions\ex_042_004_Keys_conventions.csproj", "{DBEE3EA3-9B59-4688-B7D7-6A4ABA6E1991}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ex_042_005_Keys_data_annotations", "p08_BDD_EntityFramework\ex_042_005_Keys_data_annotations\ex_042_005_Keys_data_annotations.csproj", "{27725449-27B2-47ED-A2B3-738851E55C64}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -4702,6 +4704,26 @@ Global
{DBEE3EA3-9B59-4688-B7D7-6A4ABA6E1991}.Release|x64.Build.0 = Release|Any CPU {DBEE3EA3-9B59-4688-B7D7-6A4ABA6E1991}.Release|x64.Build.0 = Release|Any CPU
{DBEE3EA3-9B59-4688-B7D7-6A4ABA6E1991}.Release|x86.ActiveCfg = Release|Any CPU {DBEE3EA3-9B59-4688-B7D7-6A4ABA6E1991}.Release|x86.ActiveCfg = Release|Any CPU
{DBEE3EA3-9B59-4688-B7D7-6A4ABA6E1991}.Release|x86.Build.0 = Release|Any CPU {DBEE3EA3-9B59-4688-B7D7-6A4ABA6E1991}.Release|x86.Build.0 = Release|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Debug|Any CPU.Build.0 = Debug|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Debug|ARM.ActiveCfg = Debug|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Debug|ARM.Build.0 = Debug|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Debug|ARM64.Build.0 = Debug|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Debug|x64.ActiveCfg = Debug|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Debug|x64.Build.0 = Debug|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Debug|x86.ActiveCfg = Debug|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Debug|x86.Build.0 = Debug|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Release|Any CPU.ActiveCfg = Release|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Release|Any CPU.Build.0 = Release|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Release|ARM.ActiveCfg = Release|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Release|ARM.Build.0 = Release|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Release|ARM64.ActiveCfg = Release|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Release|ARM64.Build.0 = Release|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Release|x64.ActiveCfg = Release|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Release|x64.Build.0 = Release|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Release|x86.ActiveCfg = Release|Any CPU
{27725449-27B2-47ED-A2B3-738851E55C64}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
@ -4970,6 +4992,7 @@ Global
{87EF3DAF-4166-496F-B0CE-546E20FADBAC} = {5B333C02-67B7-4A4C-AA58-2710C183292B} {87EF3DAF-4166-496F-B0CE-546E20FADBAC} = {5B333C02-67B7-4A4C-AA58-2710C183292B}
{BAB08578-898E-48C5-8470-6AC72D49B0D8} = {5B333C02-67B7-4A4C-AA58-2710C183292B} {BAB08578-898E-48C5-8470-6AC72D49B0D8} = {5B333C02-67B7-4A4C-AA58-2710C183292B}
{DBEE3EA3-9B59-4688-B7D7-6A4ABA6E1991} = {5B333C02-67B7-4A4C-AA58-2710C183292B} {DBEE3EA3-9B59-4688-B7D7-6A4ABA6E1991} = {5B333C02-67B7-4A4C-AA58-2710C183292B}
{27725449-27B2-47ED-A2B3-738851E55C64} = {5B333C02-67B7-4A4C-AA58-2710C183292B}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8D31C3AE-36FF-4667-A2A7-0E670245A59E} SolutionGuid = {8D31C3AE-36FF-4667-A2A7-0E670245A59E}

@ -1,5 +1,5 @@
# Entity Framework Core 3.0 # Entity Framework Core 3.0
*04/01/2020 ⋅ Marc Chevaldonné* *06/01/2020 ⋅ Marc Chevaldonné*
--- ---
Entity Framework (EF) Core est un ORM (Object-Relational Mapper) qui permet aux développeurs .NET de gérer de manière simple, légère et extensible, des bases de données. Entity Framework (EF) Core est un ORM (Object-Relational Mapper) qui permet aux développeurs .NET de gérer de manière simple, légère et extensible, des bases de données.
@ -25,7 +25,8 @@ Ce chapitre s'attardera sur le lien entre le mod
* **ex_042_001 : conventions d'écriture** : explique quelles sont les conventions d'écriture utilisées pour la transformation d'une entité en table. * **ex_042_001 : conventions d'écriture** : explique quelles sont les conventions d'écriture utilisées pour la transformation d'une entité en table.
* **ex_042_002 : data annotations** : explique comment utiliser les *data annotations* pour personnaliser la transformation d'une entité en table. * **ex_042_002 : data annotations** : explique comment utiliser les *data annotations* pour personnaliser la transformation d'une entité en table.
* **ex_042_003 : Fluent API** : explique comment utiliser la *Fluent API* pour personnaliser la transformation d'une entité en table. * **ex_042_003 : Fluent API** : explique comment utiliser la *Fluent API* pour personnaliser la transformation d'une entité en table.
* **ex_042_004 : Value generation with conventions** : explique comment les valeurs de propriétés d'une entité sont générées par la base lorsqu'on utilise les conventions d'écriture. * **ex_042_004 : Keys with conventions** : explique comment créer les clés primaires d'une entité lorsqu'on utilise les conventions d'écriture.
* **ex_042_005 : Keys with data annotations** : explique comment créer les clés primaires d'une entité lorsqu'on utilise les *data annotations*.
3. *Schemas and migrations* : 3. *Schemas and migrations* :
Le but de ce chapitre sera de vous montrer comment garder votre modèle et votre base de données synchronisés. Le but de ce chapitre sera de vous montrer comment garder votre modèle et votre base de données synchronisés.

@ -12,7 +12,7 @@
* ? nullable reference types => navigating (include, theninclude) * ? nullable reference types => navigating (include, theninclude)
##### creating a model (42) ##### creating a model (42)
* V 001, 002, 003 entity types, entity properties * V 001, 002, 003 entity types, entity properties
* keys, 004 generated values * 004, 005, keys, generated values
* ? backing fields? * ? backing fields?
* initialization strategy, seeding data * initialization strategy, seeding data
* shadow properties * shadow properties

Loading…
Cancel
Save