0

我们在我们的应用程序中使用 MVC3 和 EF。我们遵循数据库优先的方法。

我们正处于或项目的初始阶段。到目前为止,我们正在考虑在我们的应用程序中使用多个 EF 模型(从 DB 生成)。

就像每个模块一样,我们正在考虑使用相关表生成模型并在该模块中使用该表。

可能在某些模型中,我们可能有一些常见的表格,如参考数据(示例国家列表)。

这样做会对性能产生任何影响吗?

谢谢。

4

1 回答 1

1

Actually it is better to have multiple smaller EF models in an application as opposed to one larger model. You can run into performance problems if the model is very inter connected.

See this article for more information: http://www.codeproject.com/Articles/38922/Performance-and-the-Entity-Framework

于 2012-08-17T19:22:41.097 回答