WCF Data Contract and Reference Entity Data?

前端 未结 7 583
梦谈多话
梦谈多话 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:11

    We're at the same decision point on our project. As of right now, we've decided to create three levels of DTOs to handle a Thing: SimpleThing, ComplexThing, and FullThing. We don't know how it'll work out for us, though, so this is not yet an answer grounded in reality.

    One thing I'm wondering is if we might learn that our services are designed at the "wrong" level. For example, is there ever an instance where we should bust a FullThing apart and only pass a SimpleThing? If we do, does that imply we've inappropriately put some business logic at too high of a level?

提交回复
热议问题