CodeBetter.Com
CodeBetter.Com

Browse by Tags

  • Wrapping up nHibernate in repositories

    In my last post I discussed wrapping up the two core objects of nHibernate, the session manager factory and the session, in a helper class. At the end of the story I briefly mentioned how to use helper objects in a repository. In this post I am further exploring the actual database actions of the helper...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 04-04-2008
  • Wrapping up nHibernate

    In a relative short span of time nHibernate has become a major member of my toolbox. It has become the way to work with a database, not only a small hap-snap apps but it's also making big strides into a constantly evolving system I'm working on. Setting up nHibernate several times has given me...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 03-26-2008
  • Back to basics, from the DB to a simple domain object

    This post is an extended and revised version of " Back to basics, just reading some data from a DB ". Feedback on that provided more than enough inspiration for this one. Are you already drowning in the enormous amount of TLA's, tools, utilities, methodologies and whatever else ? Let's...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 12-03-2007
  • Back to basics, just reading some data from a DB

    <update>A revised and extended version of this post also handles creating a customer domain object, which does have some behavior. It does also covers some methods to make the behavior of the datareader a little cleaner. The post can be found here </update> Are you already drowning in the...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 11-21-2007
  • Sloppy SQL and database schema

    This is another story from the app with the sprocs , an app where a lot of the business logic (BL) is inside a large number of stored procedures (sprocs). These are written by the domain expert himself. As the BL changes the app changes as well, which leads to change of the table structures (the database...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 10-22-2007
  • RADical ASP.NET in VS 2005 without messing it up right from the start

    The term RAD is more or less a hot topic on Codebetter. It started with a "RAD kills" post by Jeffrey which lead many people to chime in. As I almost glorified RAD it's time to write something more elaborate on how I think you can work with RAD without making a mess out of it. This will dance around...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 04-25-2006
  • (Mis-) understanding dataviews and databinding

    I was given a nice little Pocket PC application which worked well but took far too long to start. My first code walk through was a WTF. It was the common scenario, a well known major consulting firm producing code which demonstrated they did not quite understand what they were doing. But instead of just...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 10-20-2005
  • SELECT * WHERE % ORDER BY why ?

    A sql select query looks something like this : SELECT MyCol FROM MyTable WHERE MyCol = 'A' ORDER BY Mycol It has a couple of parts SELECT FROM specifies the output columns WHERE specifies the rows ORDER BY specifies the sort order of the output rows What puzzles me is that the order of these three parts...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 05-25-2005
  • sqlInjection attack on a LIKE query

    If SQL had known attributes I should have decorated my Like query with [ AirCode ]. Several comments questioned wheter and how it was vulnerable to a sql-injection attack. Well, the aircode version is. The original is harder to break. The vulnerable one : orgSql = "SELECT id, Info FROM Table1"; sqlDataAdapterBuildSql...
    Posted to Peter's Gekko (Weblog) by pvanooijen on 04-08-2005
Page 1 of 1 (9 items)