Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COThanks for the feedback. This suggestion sounds very interesting. Are you basically saying that I could create a custom attribute that will provide another way of looking at the data...just like a view? If that is the case, can you point me in the right direction for this concept. Sounds like it could be a great idea. Also, when the repository returns DTO objects, they are generally the same name as the EF generated objects...would you suggest just using a different naming convention for the DTOs to avoid type conflicts?
      singulars
    2. COOne way I do it is to create a ViewModel per View. Where the ViewModel classes are just aggregates of the data I want to display. I don't see any problem with moving the ORM Entities thru these ViewModels, but if that makes you uncomfortable, you can always just put the ORM models in another assembly, and make them private. Then use something like StuctureMap to transform them into your ViewModel and it's data.
      singulars
    3. COCustom attribute will give you the ability to define different possible view models for business service methods. Thus those method's output will be fed to the view model and it will take care of generating the desired output. To implement this behavior you'll need a proxy class for the business service that calls the desired method, extracts the appropriate view name from meta data, passes the business output to the view then returns the view output.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload