user interface - Domain Entity and UI Entity -


we creating project using mvc c# in application having following layers:

  • presentation (mvc)
    • controller
    • view
  • domain
    • domain entity
    • repository interface
    • interface unit of works
  • infrastructure (dataaccess)
    • repository
    • unit of works
    • edmx
    • data entity

our domain entity , data entity same. poco class. have bound our views domain entity tightly coupled.

question:

1. correct or create viewmodel entity our views?

2. pass our data entity our view save on mapping?

i dont think rigth... talking mvc, our layers meens model, view,controller, maybe


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -