Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente | |||
|
langages:asp_csharp:ef:migrer_une_base_de_donnees_existante [2019/09/24 12:41] jonathan |
langages:asp_csharp:ef:migrer_une_base_de_donnees_existante [2019/09/24 12:41] (Version actuelle) jonathan |
||
|---|---|---|---|
| Ligne 20: | Ligne 20: | ||
| } | } | ||
| }; | }; | ||
| - | </csharp> | + | </code> |
| But you can't insert an author with explicit AuthorId value directly in the identity column, so you will need to turn on the IDENTITY_INSERT before calling SaveChanges(). | But you can't insert an author with explicit AuthorId value directly in the identity column, so you will need to turn on the IDENTITY_INSERT before calling SaveChanges(). | ||