c# - How to remove a constraint on table using entity framework db migrations -


i'm trying alter type of table column int long.

altercolumn("dbo.files", "size", c => c.long(nullable: false)); 

it's throwing error on migration:

the object 'df__files__size__1fcdbceb' dependent on column 'size'. alter table alter column size failed because 1 or more objects access column. 

how remove constraint in entity framework... migration, put in?


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -