LINQ to SQL: Multiple / Single .dbml per project?

后端 未结 7 1140
悲哀的现实
悲哀的现实 2020-12-14 11:12

I\'ve read Rick Strahl\'s article on Linq to SQL DataContext Lifetime Management hoping to find some answers on how I would manage my .dbml files since they are so closely r

7条回答
  •  一向
    一向 (楼主)
    2020-12-14 11:24

    This issue has been thoroughly analyzed here: http://craftycode.wordpress.com/2010/07/19/linq-to-sql-single-data-context-or-multiple/

    In summary, you should create at most one data context per strongly connected group of tables, or one data context per database.

提交回复
热议问题