实体框架代码优先CTP4缺省列值? [英] Entity Framework Code First CTP4 Default Column Values?
本文介绍了实体框架代码优先CTP4缺省列值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在寻找到第一个代码实体框架CTP4,您可以使用模型构建器来建立你的表列。有没有一种方法来设置默认值,使用模型构建器或其他一些机制?
感谢您!
在数据库中的列< DIV CLASS =h2_lin>解决方案
无法找到一种方法,通过文本编辑器添加比manualy编辑其他默认值/应用
这是实体框架中的错误...
I have been looking into Code First with Entity Framework CTP4 and you can use the ModelBuilder to build up your table columns. Is there a way to set the default value for a column in the database using the ModelBuilder or some other mechanism?
Thank You!
解决方案
Couldn't find a way to add default value other than manualy edit via text editor / application This is a bug in the Entity Framework...
这篇关于实体框架代码优先CTP4缺省列值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文