Hi,
Are there any good ddd, repository based examples for using
NHibernate, i know Ayende has a base repository in rhino commons, but
it doesn't seem to solve the real architectural question here (as it
is just a wrapper for what the session of nhibernate can do).
Still haven't found one decent example that uses Nhibernate as a
persistence framework.
Another not a simple problem is validation, yeah i know nhibernate
validator, what about valid for specific operation ??? And what about
NotNull Validation (Nhibernate throwing Not Null property references
null or transient instance even on string's) Why is it that this
exception is thrown before any validation logic is executed on the
Update and save event.
The only thing that can solve it all is using DTO's in your repository
and doing all needed operations in the background of the method
For example
class ClazzRepository
{
void Save(ClazzDto dto)
{
}
}
Anyone has any advice on this ?
Kind regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---