Q1) What are your recommendations for model definition relative to entity definition?
1. Reference entity in model
or
2. Do not reference entity - create a 'flat' version of the entity that has only entity's properties (data). All data classes live in a business layer/dll that MVC/ui references.
e.g., UserEntity -> UserData object
data flow is:
a. fetch/read records from db into entities
b. populate data object(s)
c. use data objects in UI - update them/create them , etc.
d. usiing data object(s), populate entities
e. save entities to db
Q2) If you recommend (1), point out issues/limitation, and weaknesses.
e.g., maybe entities do not support dependency injection
Thanks.