Archive for the ‘Base4’ Category
  • NBlogr Presentation in Wellington
    by admin
    Posted May 1st, 2007 at 11:17 pm
    Tonight I got the chance to present my nblogr application to a larger audience. Unfortunately I'm in the process of fixing bugs in NBlogr and one of those bugs required me to make a change to NBlogr.Web/views/default/shared/mainmenu.boo . I had made this change on sunday around midnight right before I went to bed. Of course I forgot to test the application because and it wouldn't run on my presentation.  When I got home it took me about 3 minutes to fix. I had to import a referenc...
  • Base4 and Castle… the controller
    by admin
    Posted October 18th, 2006 at 8:14 am
    The next bit for pages in general is that often they represent a list. Often this list is a really long list that you'd like to page through. I put this functionality into a generic base controller class. The whole idea of my set up is to provide a technique called progressive enhancement of forms.  In short you create an application that works completely without javascript using hyperlinks for gets and submit buttons etc.  Then you attach some css selector classes to the different bits of fu...
  • Base4 and Castle … The service
    by admin
    Posted October 17th, 2006 at 6:38 am
    UPDATE: THE SERVICE CLASS HAS CHANGED AGAIN.Scratch the update.. it assumes that the object is already in the database which isn't always the case. For this type of synchronisation to work I need some more time. So I reverted this back to the old version This post continues my previous posts on using base4 and castle together. I'm sorry but there is no Active record in the base4 way of doing things. The previous posts you would be intrested in can be found here : Hosting base4 inside your web a...
  • Base4 on Castle continued… The facility
    by admin
    Posted October 16th, 2006 at 7:00 am
    Much of what I'm going to show today has been borrowed from Alex Henderson on the storage facility. This post continues the hosting base4 inside your web application post To integrate base4 in castle you can register either components or create a facility which allows it to hook into some bits of the castle life-cycle. It doesn't make such a big difference when actually writing code except for the fact that you have transactions managed by castle, caching etc practically for free. The ObjectTran...
  • Some news on nblogr
    by admin
    Posted October 14th, 2006 at 8:12 am
    NBlogr isn't dead.. It just underwent a transformation for the better. I also changed the title of the application from NBlogr - An atlas blogging engine to NBlogr - a blogging engine built on simplicityThe reason for this change is the fact that it is currently built using jquery as javascript library.  I will look at atlas again when it releases. I moved NBlogr to run on castle.  During the course of the next week I'll complete my posts on how to do Castle development with base4 If you're i...
  • Hosting Base4 inside your web application
    by admin
    Posted October 12th, 2006 at 5:42 am
    Following up on the post of yesterday.  To use base4 with asp.net often you do not have the possibility to host base4 as a windows service. But to host base4 in the same appdomain as you website isn't all that hard. I'll just share my code and how to use it. The way to go is to create a class that extends the HttpApplicatin and handle the application start and end events. I'll also post the code i have to integrate this with castle. This is my base HttpApplication, every web app inherits of ...
  • Base4 and NLog
    by admin
    Posted October 11th, 2006 at 6:07 am
    As you know already I like base4 a lot Alex Henderson has got a nice post on integrating base4 much prettier than I did in castle.  Later on today I'll post what I made of it I tried to use log4net but didn't succeed.  So I switched to nlog which I like a lot. Now to integrate nlog with base4 wasn't all that hard. This is the type from my schema which just stores about anything i would want to know about a particular event. and probably more in my case :)                       Â...
  • Base4 and Castle
    by admin
    Posted September 23rd, 2006 at 10:08 am
    Something I found very useful to use in castle is Base4  And as it so happens Nic Wise just asked me if you could use the 2 together. The answer is yes you can. I know they support nhibernate but that is not really the same :)  Base4 just goes that extra mile. Since data access is always the same. And the examples on the castle site use concrete implementations of data access objects. I thought I really don't need a facility for the moment and can just use base4. Anyway here is the class I us...
  • Objectdatasource, gridview and custom paging
    by admin
    Posted August 31st, 2006 at 11:29 am
    I've spent the last couple of hours trying to work something out that boggled my mind. I have a base4 class that I wrapped in a Dataobject in my Businesslayer. On my page (actually in a user control) i have a gridview that binds to an object datasource and stores the list of retrieved values in the viewstate. The business object is paged server side and supports sorting. The business object looks at it's simplest like this : There are 2 methods for every retrieval function. the first ...
  • A generic builder for unit tests
    by admin
    Posted August 29th, 2006 at 11:45 am
    I've been using base4 quite a lot lately :). And obviously I like it. But anyway for unit testing i found myself writing virtually the same builder class over and over again. And since it is just test data that needs to be removed later it is always very similar. I started thinking about my problem and came to the conclusion that I could easily enough build a generic class that iterates over the object and takes all the properties that belong to that type and not to any of the...
Around The Site
Categories
Archives
Tags