public class FluentNHibernateInitializationAwareConfigurator :
INHibernateInitializationAware
    {
        #region INHibernateInitializationAware Members

        public void BeforeInitialization()
        {
        }

        public void Configured(Configuration cfg)
        {
            Fluently.Configure().Mappings(m =>
                                              {
 
m.FluentMappings.AddFromAssemblyOf<User>();
 
m.HbmMappings.AddFromAssemblyOf<Specialty>();
                                                  m.Apply(cfg);
                                              });

            Security.Configure<User>(cfg,
SecurityTableStructure.Prefix); // Makes config available to Rhino
Security
            cfg.SetListener(ListenerType.Delete, new
SoftDeleteEventListener()); //configure soft delete listener;
            cfg.SetListener(ListenerType.PostUpdate, new
AuditUpdateListener()); //configure audit update listener#

        }

        public void Initialized(Configuration cfg, ISessionFactory
sessionFactory)
        {
        }

        #endregion
    }

On Oct 20, 10:54 am, Wayne Douglas <[email protected]> wrote:
> That was super easy!! Just had to make sure I had all the right DLLs
>
> My next task is to get it working with the Castle Nhibernate Facility
>
> Anyone got any pointers? Specifically around the fact that I dont have the
> cfg to call Security.Configure<User>(cfg, SecurityTableStructure.Prefix);
>
> On Wed, Oct 20, 2010 at 9:57 AM, Wayne Douglas
> <[email protected]>wrote:
>
>
>
> > I expect this to be the case - full steam ahead then!!
>
> > :)
>
> > On Wed, Oct 20, 2010 at 9:44 AM, Ayende Rahien <[email protected]> wrote:
>
> >> The actual problem starts when you need to query large result sets, NOT
> >> the size of the data, but how much data you return.
> >> If you query for 20 - 50 results, it is fine.
>
> >> On Wed, Oct 20, 2010 at 10:42 AM, Wayne Douglas <
> >> [email protected]> wrote:
>
> >>> Hmmm
>
> >>> We're looking at using it for a new social network site - so managing the
> >>> permissions on things like photos, groups etc
>
> >>> What would you consider a "large" site?
>
> >>> We'd expect our userbase to grow to the hundreds of thousands but
> >>> probably no bigger.
>
> >>> w://
>
> >>> On Tue, Oct 19, 2010 at 11:04 PM, Nathan Stott <[email protected]>wrote:
>
> >>>> It's great as long as you don't have extremely large databases.  There
> >>>> are scalability problems that could be solved but would take quite a
> >>>> bit of effort.
>
> >>>> On Tue, Oct 19, 2010 at 3:47 AM, Wayne Douglas
> >>>> <[email protected]> wrote:
> >>>> > as an update
>
> >>>> > I'm going to start over with a fresh branch & get of r.s and also all
> >>>> the
> >>>> > latest DLLs using nu
>
> >>>> > I'll then try and get the tests passing
>
> >>>> > If I run into trouble I'd really, really appreciate some support as
> >>>> this is
> >>>> > a completely new project to me. Is anyone aware of any issues which I
> >>>> may
> >>>> > run into? Any gotchas?
>
> >>>> > Cheers
>
> >>>> > w://
>
> >>>> > On Tue, Oct 19, 2010 at 7:15 AM, Wayne Douglas <
> >>>> [email protected]>
> >>>> > wrote:
>
> >>>> >> hey.
>
> >>>> >> Don't really want to upgrade the code at the moment. Just want to
> >>>> >> update the dependancies. Why has it lost momentum? Is it considered
> >>>> >> complete now or is the approach not correct? It looks to be ideal for
> >>>> >> our needs.
>
> >>>> >> On 10/19/10, Nathan Stott <[email protected]> wrote:
> >>>> >> > Most of us who are using it are just using it to support existing
> >>>> >> > projects that were started with it, it seems.  There isn't any
> >>>> >> > momentum to improve it at the moment.
>
> >>>> >> > On Mon, Oct 18, 2010 at 3:57 PM, [email protected]
> >>>> >> > <[email protected]> wrote:
> >>>> >> >> Hey
>
> >>>> >> >> What's the situation with this? I have it building using
> >>>> NHibernate 3
> >>>> >> >> but I don't seem to be able to get it working  - clumsily trying
> >>>> to
> >>>> >> >> figure it out - is this project still expected to work or has it
> >>>> lost
> >>>> >> >> momentum?
>
> >>>> >> >> w://
>
> >>>> >> >> --
> >>>> >> >> You received this message because you are subscribed to the Google
> >>>> >> >> Groups
> >>>> >> >> "Rhino Tools Dev" group.
> >>>> >> >> To post to this group, send email to
> >>>> [email protected].
> >>>> >> >> To unsubscribe from this group, send email to
> >>>> >> >> [email protected]<rhino-tools-dev%[email protected]>
> >>>> .
> >>>> >> >> For more options, visit this group at
> >>>> >> >>http://groups.google.com/group/rhino-tools-dev?hl=en.
>
> >>>> >> > --
> >>>> >> > You received this message because you are subscribed to the Google
> >>>> >> > Groups
> >>>> >> > "Rhino Tools Dev" group.
> >>>> >> > To post to this group, send email to
> >>>> [email protected].
> >>>> >> > To unsubscribe from this group, send email to
> >>>> >> > [email protected]<rhino-tools-dev%[email protected]>
> >>>> .
> >>>> >> > For more options, visit this group at
> >>>> >> >http://groups.google.com/group/rhino-tools-dev?hl=en.
>
> >>>> >> --
> >>>> >> Cheers,
>
> >>>> >> w://
>
> >>>> > --
> >>>> > Cheers,
>
> >>>> > w://
>
> >>>> > --
> >>>> > You received this message because you are subscribed to the Google
> >>>> Groups
> >>>> > "Rhino Tools Dev" group.
> >>>> > To post to this group, send email to [email protected]
> >>>> .
> >>>> > To unsubscribe from this group, send email to
> >>>> > [email protected]<rhino-tools-dev%[email protected]>
> >>>> .
> >>>> > For more options, visit this group at
> >>>> >http://groups.google.com/group/rhino-tools-dev?hl=en.
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "Rhino Tools Dev" group.
> >>>> To post to this group, send email to [email protected].
> >>>> To unsubscribe from this group, send email to
> >>>> [email protected]<rhino-tools-dev%[email protected]>
> >>>> .
> >>>> For more options, visit this group at
> >>>>http://groups.google.com/group/rhino-tools-dev?hl=en.
>
> >>> --
> >>> Cheers,
>
> >>> w://
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Rhino Tools Dev" group.
> >>> To post to this group, send email to [email protected].
> >>> To unsubscribe from this group, send email to
> >>> [email protected]<rhino-tools-dev%[email protected]>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/rhino-tools-dev?hl=en.
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "Rhino Tools Dev" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<rhino-tools-dev%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/rhino-tools-dev?hl=en.
>
> > --
> > Cheers,
>
> > w://
>
> --
> Cheers,
>
> w://

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" 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/rhino-tools-dev?hl=en.

Reply via email to