Devlico.Us
CodeBetter.Com

Browse by Tags

  • Custom Profile Provider with NHibernate

    I've updated the NHibernate blog example code to include a custom profile provider. This provider stores the profile information using the XML data type in SQL Server 2005. New profile properties can be added to the web.config file in same way as the Microsoft SqlProfileProvider. The included web.config...
    Posted to Alan Northam (Weblog) by anortham on 08-09-2007
  • Getting Started with NHibernate: Part IV

    I've made some major changes to the blog application example. The users and roles now use custom membership and role providers that supports NHibernate. Session context is maintained with a custom implementation of ICurrentSessionContext (a new NHibernate 1.2 feature). The session and session factory...
    Posted to Alan Northam (Weblog) by anortham on 07-26-2007
  • Getting Started with NHibernate: Part III - Updated

    I've updated the mapping files for Comment and BlogPost in Part III . The changes are: The named query GetCommentsByBlogPostID has been moved into the BlogPost.hbm.xml file, it just makes more sense for it to be there. <loader query-ref="GetCommentsByBlogPostID"/> was added to the Comments collection...
    Posted to Alan Northam (Weblog) by anortham on 05-30-2007
  • Getting Started with NHibernate: Part III

    When mapping objects to the database in NHibernate you can either use XML files or decorate your classes with mapping attributes (NHibernate.Mapping.Attributes). I've used both but I usually choose XML files simply as a matter of personal preference. Either method works well and both provide many options...
    Posted to Alan Northam (Weblog) by anortham on 05-23-2007
  • Netflix Memoirs: Using the Pearson Correlation Coefficient

    Updated 2/12/07 to include SQL for computing movie prediction. Slugging my way through the Netflix challenge , I've come across a number of computational techniques of which I was previously unaware. One such technique, using the Pearson correlation coefficient to find similar movie raters, seems useful...
    Posted to Billy McCafferty (Weblog) by Billy McCafferty on 11-07-2006
  • Common SQL Scripts and Tips

    Since embracing NHibernate, I've reveled in not writing any ADO code. On the other hand, I've become a bit rusty, and a bit nostalgic for that matter, with SQL these days. To my chagrin, I find myself having to look up bits and pieces of SQL that I used to be able to recite in my sleep. To help cut down...
    Posted to Billy McCafferty (Weblog) by Billy McCafferty on 10-24-2006
Page 1 of 1 (6 items)

Our Sponsors

Red-Gate!

Proudly Partnered With