如何在Orchard SchemaBuilder上允许空值?

时间:2013-04-26 23:06:30

标签: orchardcms database-migration

我试图向ProjectRecord表添加一个新列,我想允许空值, 代码:

  

SchemaBuilder.AlterTable(" ProjectRecord",table => table.AddColumn(" Related",DbType.Int32));

感谢。

Krbnr。

1 个答案:

答案 0 :(得分:2)

.AddColumn<int>("Related", c => c.Nullable())