开发者

Entity Framework 4.0 + Configurable ProviderManifestToken

We have built a product around EF4 with POCO and the initial requirements were to work against SQLServer 2005. However, we have a few clients who have SQLServer2008 installed. Hence, at runtime, we need to verify the version of the DB and make changes to the manifest token in the edmx accordingly. Or, can it be done to read the ProviderManifestToken from a web.config and build the edmx at runtime. Our client doesn't want one installer per DB vers开发者_运维技巧ion.

Thanks,Murali


Eventhough the actual database is SqlServer2008 you can still have a ProviderManifestToken value of 2005. So unless you are building two different versions of your software, where one targets (and uses the features of) SqlServer2008, you can just keep it as is.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜