Entity Framework 4 - Handling very large (1000+ tables) data models?

前端 未结 3 401
逝去的感伤
逝去的感伤 2021-02-04 03:46

We\'ve got a database with over 1000+ tables and would like to consider using EF4 for our data access layer, but I\'m concerned about the practical realities of using it for suc

3条回答
  •  悲&欢浪女
    2021-02-04 04:05

    The number I heard in a Microsoft screencast is a maximum of roughly 250 tables per EF model. That doesn't mean EF can't handle more - it might just be sensible to break up your 1000+ tables into several logical groups of tables, and use one EF model per such logical group (with up to 250 tables in it).

    I highly doubt you'll have queries that will need to use all 1000 tables at once - most likely not even 10 at once. So you should definitely be able to split up your pretty large model into smaller clusters and turn each into a separate EF model.

提交回复
热议问题