I want to create an asp.net application that has several layers (classic layer design): business layer and presentation layer. The data layer seems outdated as EF does all the work.
Therefore, when I create an EF model in Business Layer, I cannot use entities at the presentation level because I cannot add data annotations for display and validation, etc. (especially the display attribute is usually part of the presentation layer). And it seems to me not very good to create copies of all the data in similar classes "viewmodel" in the view layer.
So, is there a good approach for creating an object context at the business level and having a common βcontractβ - an assembly for objects? Most of the samples I found put everything in one single assembly, which, in my opinion, is not the best approach for more complex applications.
source
share