EF4 STE include-path .... exclude-path?

Context: Template Repository, WCF, WPF / SL

In my repository of self-monitoring objects, I have to explicitly load some related properties in order to properly process the request. These are not the requests requested by the client, and I would like to get rid of them in order to keep the network traffic resonant. My solution so far is this:

  • Get a request
  • Download includes required response to request
  • Fulfill request
  • Create Temporary IEnumerable
  • Iterate 4) and load all the elements again, this time with the include-path requested only from the client application
  • returns objects via WCF

I would like to do this:

  • Get a request
  • Download all includes (infrastructure plus customer request)
  • Fulfill request
  • Unload "Infrastructure" includes
  • returns objects via WCF

    ?

,  

+3
1

DTO?

  • WCF GetOrderResponse (Contracts.Order)
  • EntityModel ( )
  • automapper EntityModel.Order = > Contracts.Order

: . . :

Ex. Contracts.Order            OrderDetails (= > , )

SOA -, . , , WCF, .

, : SOA ( ) .

0

Source: https://habr.com/ru/post/1793636/


All Articles