How to share the most code between a WPF and an ASP.NET MVC application?

后端 未结 7 1707
野性不改
野性不改 2021-02-19 06:20

What architecture and patterns can I use to share the most model and logic code between a WPF and an ASP.NET MVC application?

I am trying to achieve a bit more here than

7条回答
  •  面向向阳花
    2021-02-19 07:04

    One of the most widely used patterns seems to be having the Entities in a seperate DLL assembly, then having this referenced from each of the other projects.

    MVC 3 suits the repository pattern very nicely, which can be a clean route to take in the first instance, and will work for both WPF and ASP.net

提交回复
热议问题