Hi, i'm building a form managment system, thats is, the system will contain many forms, will save them, and perform logic on them, I want to do it using the DDD approach.
I want to support easy form layout later on using ASP.NET MVC, so far i see the domain like this:
I'll have a base form entity, which should(for now) have a name, fields(and theire values) and validation logic.
My questions are:
- How should i write the field valueobject using generics? i cant seem to figure it out..
- Should i encapsulate the validation logic inside the form or do it using the specification pattern?