dotnet / dotnet/EntityFramework.Docs
CreateTable docs should tell what happens if the table already exists
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 16
Description
The docs should be explicit about what happens if the table already exists in the schema. Will an exception be thrown? Will it be a no-op? Will it truncate & overwrite the existing table?
In general, this would be useful info for man of the `MigrationBuilder` methods.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 187896bd-0e67-923b-9863-d50ba411b9c0
* Version Independent ID: efc25ab0-39bd-2bcc-cd56-61fb75608048
* Content: [MigrationBuilder.CreateTable Method (Microsoft.EntityFrameworkCore.Migrations)](https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.migrations.migrationbuilder.createtable?view=efcore-5.0)
* Content Source: [dotnet/xml/Microsoft.EntityFrameworkCore.Migrations/MigrationBuilder.xml](https://github.com/dotnet/EntityFramework.ApiDocs/blob/live/dotnet/xml/Microsoft.EntityFrameworkCore.Migrations/MigrationBuilder.xml)
* Product: **ef-core-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **avickers**
Contributor guide
Assessment
This issue has not been assessed yet.