Programming, technology, and CRM – from a Belgian programmer exiled to Missouri
  • rss
  • Home
  • Soft Gallery
    • autosvnbackup.sh
    • VBScript Snippets
  • Contact Me
  • Welcome

NHibernate + SLX

Nicolas Galler | November 12, 2006

The last project was porting the SLX leads management module to the web. Obviously I did not want to have to deal with the SLXWEB development environment so I have developed it as an ASP.NET website. I am using NHibernate 1.0.2 for object persistence. Of course there were a few rough patches but overall it went in pretty well, doesn’t seem to have any problem chatting with the SLX OLEDB provider and generating SLX ids. I have yet to decide, however, if it is actually worth the hassle vs creating my own DAO from scratch! The hope I have is that some of the performance features (caching, lazy loading) will pay off. A lot of the “plumbing” is implemented in a shared assembly so we will also be able to reuse it for future projects (including a MyGeneration template that generates the code automatically, though I need to change this one to take advantage of the JOINDATA table instead of using the SQL constraints since SLX “forgot” to implement those).

I just found out about the ISession.FlushMode property. Set that to commit and it seemed to yield a big performance improvement (though actually it seems a bit too big to be true and I think what happened is my laptop was bogged down when I ran a performance test last week… it went from 2 minutes to 10 seconds). Anyway this is a good thing considering I will only call Save from my DAO objects, to ensure everything is consistently wrapped in transactions.

Categories
Programming
Comments rss
Comments rss
Trackback
Trackback

« .NET Composite Control Decimal.Parse -> "Invalid Input String" »

Leave a Reply

Click here to cancel reply.

Categories

  • Dojo (1)
  • Experiments (4)
  • Force.com (2)
  • Interesting (1)
  • Javascript (3)
  • MSCRM (1)
  • Programming (63)
  • Rant (3)
  • Saleslogix (41)
  • Tricks (8)
  • Uncategorized (32)

Post History

  • 2011
    • January (3)
    • February (2)
    • March (1)
  • 2010
    • January (3)
    • March (3)
    • April (2)
    • August (2)
    • October (4)
    • November (1)
    • December (2)
  • 2009
    • March (2)
    • April (1)
    • May (3)
    • June (3)
    • July (1)
    • September (3)
    • October (2)
    • December (5)
  • 2008
    • January (9)
    • February (4)
    • March (9)
    • April (1)
    • May (5)
    • June (8)
    • July (1)
    • August (2)
    • September (1)
    • November (1)
    • December (3)
  • 2007
    • January (3)
    • February (7)
    • March (1)
    • April (3)
    • May (6)
    • June (2)
    • July (1)
    • August (2)
    • September (5)
    • October (3)
    • November (5)
    • December (4)
  • 2006
    • January (2)
    • September (1)
    • November (3)
    • December (4)
  • 2005
    • April (1)

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox