well... NH is a persistence layer and nothing more.Using NH you don't have
any restriction of your architecture. Each of use has his opinion about
which should be the architecture of his application.
If you are looking for a well defined architecture you should look at CSLA
or EntityFramework, there you can find all rules about how should be
designed your application.
Using NH there are no RULES about how you should write each tear, here you
can find OPINIONS and you are free to have one more opinion and implements
it exactly as you want.

If you choose NH you will have one thing to pay : collection must be
interfaces.
Well.... perhaps even this limitation was throws... since few days NH has
ICollectionTypeFactory ;)

2009/6/15 Nexus <[email protected]>

>
> Allready checked that architecture, as his main target is MVC ASP.NET,
> not so very suitable for Winforms. And again the northwind demos are
> getting boring :P. So not a real answer to my question
>
> The following point i'd like to see :
>
> Fully implemented repository, not with one method, of the aggregate
> root in the domain, complete with validation.
>
> I know i am asking for something impossible :), but maybe this can be
> the beginning of something beautiful, and not just ramblings of code
> pieces
>
> I looked at all mayor players in the frameworking business,
> Spring.net, S#HARP architecture, Rhino commons etc
>
> Maybe i am overlooking it, but still it seems that everyone remains
> quiet on this subject.
>
> So far i have :
>
> Solution.Core :Domain layer, Data interfaces etc
> Solution.Data : Repositories and services, validation
> ...
>
> Kind regards
>
> On 15 jun, 17:56, Fabio Maulo <[email protected]> wrote:
> > http://code.google.com/p/sharp-architecture/
> >
> > 2009/6/15 Nexus <[email protected]>
> >
> >
> >
> >
> >
> >
> >
> > > 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
> >
> > --
> > Fabio Maulo- Tekst uit oorspronkelijk bericht niet weergeven -
> >
> > - Tekst uit oorspronkelijk bericht weergeven -
> >
>


-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to