c# - EF CodeFirst: Either the parameter @objname is ambiguous or the claimed @objtype (COLUMN) is wrong -
i've table named educationtypes
, entity named educationtype
, renamed 1 of entity properties, i'm getting either parameter @objname ambiguous or claimed @objtype (column) wrong
. how can solve issue?
the generated sql script:
execute sp_rename @objname = n'dbo.educationtypes.nvarchar', @newname = n'educationtypetitle', @objtype = n'column'
if you're using code first , have (an) existing migration script(s) , trying overwrite alter (i.e. renaming column) has since been deleted, you'll error output. simplest way delete migration script, add-migration via nuget, , update database.
c# entity-framework ef-code-first code-first-migrations
No comments:
Post a Comment