Applying Domain-Driven Design and Patterns: With Examples in C# and .NET Jimmy Nilsson
Publisher: Addison-Wesley Professional
Value object pattern explicitly allows you to replace a leg in an itinerary without fearing that you'll unknowingly change the itinerary of a completely unrelated cargo. Value objects are one of the basic building blocks of object domain driven design. The framework provides powerful formatting capabilities, but the syntax is confusing and there are some tricks. Here we see examples of using DateTime Format string pattern === MMM display three-letter month ddd display three-letter day of the WEEK d display day of the MONTH HH display two-digit hours on 24-hour scale mm display two-digit minutes yyyy display four-digit year. The pattern To keep this practical, I'll use a classic cargo example from the blue book – cargo is an entity here, itinerary and legs are value objects. Список литературы. NET objects clean, although the database model gets a bit dirty. You need help with DateTime formatting strings in C# or .NET languages. Domain-Driven Design: Tackling Complexity in the Heart of Software http://www.bookpool.com/sm/0321125215. Applying Domain-Driven Design and Patterns: With Examples in C# and .NET http://www.amazon.com/Applying-Domain-Driven-Design-Patterns-Examples/dp/0321268202.