LinqToSql declare and instantiate DataContext best practice?

后端 未结 5 1821
-上瘾入骨i
-上瘾入骨i 2020-12-01 14:32

What\'s the best practice in terms of setting up my DataContext for easy access in my extended LinqToSql classes?

For example, I have a \"User\" entity in my dbml a

5条回答
  •  失恋的感觉
    2020-12-01 15:21

    I think perhaps the real problem is that User is probably not the right place for an instance member call GetUser.

提交回复
热议问题