> On Thu, Aug 12, 2010 at 11:43 AM, Tom Allard <[email protected]> wrote:
> "Make everything as simple as possible, but not simpler."
> -- Albert Einstein
>
> Sure.
> For that reason this ConfORM mapping
>
> var orm = new ObjectRelationalMapper();
>
> orm.TablePerClass<Animal>();
>
> orm.TablePerClass<User>();
> orm.TablePerClass<StateProvince>();
> orm.TablePerClassHierarchy<Zoo>();
>
>
> orm.ManyToMany<Human, Human>();
> orm.OneToOne<User, Human>();
>
>
> orm.PoidStrategies.Add(new NativePoidPattern()); is equivalent to this XML
> mapping
[snip]
> Who wrote the XML mapping ?
interesting. However, before we all end up in a pissing contest who
can do the least amount of work to produce the largest amount of code files
(let me press F7 and enter to generate a lot of xml as well! ;)), I think
what's important to note here is that a lot of things are 'assumptions', so
it only works as simple as suggested when the class model is 1:1 mappable to
the db, including inheritance, and e.g. the m:n constructs.
The problem starts when things aren't as rosie as that (read: in
almost all cases: either at start with an existing DB, or after RTM when
maintenance has to be performed (which is the largest part of the project)).
Things then need detailed configuration at some level.
It's at that point when things end up as complex as the rest, and
thus 'yet another option', and thus by adding this as yet anohter option
from the NH team Point of view, it IS making things more complex: why would
an NH user choose confORM over Fluent NH? That's a complex question to
answer, even though you can produce a lot of xml from a couple of lines of
code and some classes you didn't include.
Btw, I can produce mappings and meta-data for the DB with 1
mouseclick, and a couple of keystrokes to generate the xml/fluent stuff. Is
that simpler? Well, it is in the sense of # of things to do. But that's not
the point here. The point is: what should the user choose? And that's far
from a trivial question:
- commercial or not?
- if not, what are the options? What does the team say? what is used by
most? Which project is supported by the team and most people and thus won't
be abandoned soon?
and then we haven't even discussed the technical aspects of the
various options: what will fit the situation?
FB
>
> --
> Fabio Maulo
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.