问题描述
我正在追踪创建自定义可插入约定(在这种特殊情况下可以更改所有十进制字段的精度)。
I am following EF Feature CTP5: Pluggable Conventions to create custom pluggable convention (in this particular case to change the precision of all decimal fields).
看起来像最新版本的EF 在
也是internal。我现在添加自定义可插入约定? 上添加
方法ConventionsConfiguraions
Looks like in the latest release of EF the Add
method on ConventionsConfiguraions
is also "internal'. How do i add custom Pluggable Conventions now?
推荐答案
该功能已在EF 4.1中删除,可能的实施推迟到以后的版本:
The feature has been removed in EF 4.1 and a possible implementation postponed to a later release:
从这里引用:
And:
从这里引用:
这就是为什么添加
不再作为 ConventionsConfiguration
的公共方法存在,只有删除
仍然是可用。
That's why Add
doesn't exist anymore as a public method of ConventionsConfiguration
, only Remove
is still available.
这篇关于实体框架中的可插拔约定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!