WCF Data Contract and Reference Entity Data?

前端 未结 7 484
梦谈多话
梦谈多话 2021-02-04 10:24

Soliciting feedback/options/comments regarding a \"best\" pattern to use for reference data in my services.

What do I mean by reference data?

Let\'s use Northwin

7条回答
  •  暖寄归人
    2021-02-04 11:06

    It seems like a complicated solution to me. Why not just have a customer id field in the OrderDTO class and then let the application decide at runtime whether it needs the customer data. Since it has the customer id it can pull the data down when it so decides.

提交回复
热议问题