What are good design practices when working with Entity Framework

后端 未结 2 589
我在风中等你
我在风中等你 2020-12-12 08:43

This will apply mostly for an asp.net application where the data is not accessed via soa. Meaning that you get access to the objects loaded from the framework, not Transfer

相关标签:
2条回答
  • 2020-12-12 09:22

    Please do not use all of the above info such as "Singleton access". You absolutely 100% should not be storing this context to be reused as it is not thread safe.

    0 讨论(0)
  • 2020-12-12 09:28

    While informative I think it may be more helpful to share how all this fits into a complete solution architecture. Example- Got a solution showing where you use both EF inheritance and your alternative so that it shows their performance difference.

    0 讨论(0)
提交回复
热议问题