Skip to content

[Question] Why use DropColumn instead of sp_RENAME? #1237

@Eaglef90

Description

@Eaglef90

Firstly I am sorry if this should have been posted directly in the Entity Framework repo, the contributions guidelines stated discussions should go here.

When using Entity Framework 7 against a Microsoft SQL 2008 R2 database I noticed that it is calling a DropColumn/AddColumn set when a column is renamed in an Entity instead of invoking sp_RENAME to prevent data loss. I was wondering what the reasoning for this was?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions