A \"Lookup\" in this example is an IList<string> of state abbreviations.Generally, your Domain Model POCOs won\'t include these options.ViewModels usually take this responsibility referencing bo
By the way - with reference开发者_开发知识库 to data modelling I\'m referring to logical or conceptual data models - not physical ones.
I\'ve been trying to figure out the best way to model this entity, and I\'m getting stuck. Here\'s the basic use case/story:
Please consider the domain model shown below (simplified for brevity - no ids etc.)A Customer can comment on a Product only once.Lets assume (for reasons I don\'t want to get into here) that the Custo
Is it a good practise to decouple input checking from a model and have it handled elsewhere, say by a controller? If so, h开发者_StackOverflow社区ow could this be done from an MVC or DDD standpoint?It
I have a domain model type. One of its numerous properties requires an ITranslationService to provide the ability to translate its return value into the appropriate language.
For example, I\'ve got a business object Person: class Person : INotifyPropertyChanged { string Name { get; set; }
I see DTO types being created within开发者_如何学C and passed between types in the domain model. Is this good practise?
Is it reasonable to mix view models with domain models? So i.e. the view model object con开发者_如何学Ctains some domain model objects (not the other way around!)Generally, you will have to reference
I\'m trying to make the domain model of a management system. I have the following kind of people in this system: