Category Archives: Development

HttpApplication EndRequest Event Invoked Many Times In Single Request?

By | December 14, 2008

The other day I was putting the last touch of a temporary way to manage the NHibernate session (ISession) in Bunian. So part of the task was to bind a method to the HttpApplication EndRequest event (in the Global.asax.cs file) like the following: public override void Init() {        this.EndRequest += WorkContext.NHibernateSessionManager.Instance.HttpRequestEnded; } By doing… Read More »

Travians be Warned…Rapacious is Rising

By | December 12, 2008

I don’t know whether thank or scold my good friend Omar Qadan for introducing me to Travian, a strategy game played online. It’s amazing how a simple,  web-based, HTML-front game can be so rich and vast entertainment wise! It’s a real strategy game where you build villages, resources, armies, embassies, and conduct trading, diplomacy, wars,… Read More »

Introduction to NHibernate Session at Jordev Was Good

By | December 5, 2008

The feedback was very good, and I was glad that everybody liked it. Jordev is really moving ahead, and I am very excited being part of it 🙂 Below is the slide show (it’s an enhanced version from my previous one): [slideshare id=821222&doc=introductiontonhibernate-1228487480885456-9&w=425] Code is the same of the previous one which you can download… Read More »

My First Talk at JorDev .net

By | November 21, 2008

  JorDev .net is a .net user group founded by enthusiastic Jordanian IT professionals. On Wednesday the 26th of November I will be doing my first session of a series about NHibernate. Details of talk is here: Overview NHibernate is an Object-relational mapping (ORM) solution for the Microsoft .NET platform. it provides an easy to… Read More »

Data Access Within Business Objects -Bunian Design-

By | November 10, 2008

In a previous post I showed the general architecture of Bunian. I’d like, in this post, to touch on the Data Access part and how it interacts with the Business Objects. In traditional architectures there are 3 known layers: Data Access, Business, and Presentation. DTO’s (Data Transfer Objects) are used to carry the data back… Read More »

Bunian Basic Design

By | October 23, 2008

Well, it’s moving on, very slow, but it’s moving! If you have been following this blog, then I think you are familiar with Bunian, the open source project for charity organizations. During the last Bunian team meeting at the beginning of this week, the basic design emerged (still being discussed and subject to changes till… Read More »

NHibernate possible bug in IQuery.List<T>()

By | September 22, 2008

recently, we had to clean the database from all the testing data, when an error similar to the following appeared: The value “” is not of type “System.Nullable`1[System.DateTime]” and cannot be used in this generic collection The code I executed was:             IQuery query = DbManager.MySession.CreateQuery(“select max(dateObject.EndDate) from DateDomain dateObject”);             IList<DateTime?> list = query.List<DateTime?>();… Read More »

NHibernate Inverse attribute

By | August 22, 2008

I had to read documentation, articles, many blog entries and go into discussions with colleagues… all to get the root of this ambiguous attribute of NHibernate, it is trickey! This blog entry is another trial to explain the attribute, but with taking one more detailed step into the explanation. NHibernate is meant to persist objects… Read More »

Mapping Enumeration of type int in NHibernate

By | August 19, 2008

I wanted to map an integer enumeration type in NHibernate, I googled “mapping enumeration in NHibernate” and the best explanation was of Jeremy Miller in his post here. But as it appears (and according to my understanding) that the enumeration type should be mapped to a database column of characters type (varchar, char,…etc). What if… Read More »