2 提供者模型真的只是工廠模式嗎?提供者模型是否使用工廠模式? 來源 2008-12-30 Blankman +0 你是說這個「提供者模型」? http://msdn.microsoft.com/en-us/library/ms972319.aspx – 2008-12-30 14:02:15
1 根據this, 提供商是所述的ProviderBase類的子類,並且典型地使用一個工廠方法實例化。 所以我會說不,他們不是同一個東西,但是一個工廠被用來實現一個Provider。 您還可以按照this link和Ctrl-F的「工廠」查看模式在供應商模型中的使用方式。 來源 2008-12-30 14:10:58
你是說這個「提供者模型」? http://msdn.microsoft.com/en-us/library/ms972319.aspx – 2008-12-30 14:02:15