SQL Server Migrations: Rebuild columns after altering HasComputedColumnSql #5789
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Steps to reproduce
I have a class
and DbContext
execute
Modify
OnModelCreating()
like this:execute again
The issue
Further technical details
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-rc2-final",
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview1-final",
Operating system: Win 10
Visual Studio version: 2015
MS SQL 2012
Cause of the error
In this file
src/Microsoft.EntityFrameworkCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs
lines number 60 and 400 generating script:
This is wrong.
T-SQL does not support argument 'AS' for command 'Alter column'.
For computed column, need 2 commands.
The text was updated successfully, but these errors were encountered: