开发者

Entity Framework 4.1 Docs say Database.SetInitializer() is "get or set"?

开发者 https://www.devze.com 2023-03-18 18:31 出处:网络
This page says that Database.SetInitializer() \"Gets or sets the database initialization strategy\": http://msdn.microsoft.com/en-us/library/system.data.entity.database%28v=vs.103%29.aspx

This page says that Database.SetInitializer() "Gets or sets the database initialization strategy":

http://msdn.microsoft.com/en-us/library/system.data.entity.database%28v=vs.103%29.aspx

I am interested in GETTING 开发者_运维问答the current initializtion strategy, but the method returns void, there is no parameter-less overload, and there is no overload with a ref or out parameter. So I'm at a loss as to how to use this. Am I missing something obvious or is this a typo?

... If it's a typo, any suggestions on how to work around this?


That is a typo. There is no public method or property to get current initialization strategy.

0

精彩评论

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