-
Castle’s extensibility points provide you many ways to make your life easier. One and most widely used extensibility point is the facilities. By using facilities, you can integrate various other frameworks and technologies easily. I am going to talk about NHibernate Integration Facility, which is currently...
-
I know, call me captain obvious but today I spent some time trying to determine why i was receiving the following error: {"Object of type 'System.Collections.Generic.List`1[AssignedMessageTypes]' cannot be converted to type 'Endpoint'."} No I know that Lazy loading and remoting...
-
If you have ever used NHibernate I am sure you have encounted the error ‘Invalid Index ‘N’ for this SqlParameterCollection with Count=N’ (where N is any number) exception when trying to create your mappings. If you are completely new to NHibernate, as I am I am sure this one has you scratching your head...
-
UPDATE: I have just committed the PersistentConfigurationBuilder for Castle NHibernate Facility. Thank you Jonathon Rossi for informing me! We have received several complaints about slowness of SessionFactory initialization when there’s hundreds of entities, and Ayende has replied one of them here ....
-
I've been updating the documentation for S#arp Architecture and thought I'd share the tips I'm including for NHibernate. (When referenced below, "NRD" stands for NHibernate Reference Documentation.) General Mapping File Tips For organization purposes, only declare one class per...
-
In my last post I talked about how I needed to eager load my data in order to send it back across the wire. Normally I am not a big fan of creating tests to ensure that I can hit the database, but in this case the act of eager loading needs to be verified and constant. When I set out to create...
-
At work I have a section of code which I need to eager load all my data in order to pass that data back across the wire. I thought I had it all setup correctly, but then I realized that I was not returning back unique results from my query. Imagine I have the following Schema My current need was...
-
For all of its power and glory NHibernate is no different than any other tool which requires you to configure it before you can use it. In the case of NHibernate you need to configure (map) each of the tables you want to access to the various entities in which they are going to populate. ...
-
One exception you may run across while using Fluent Nhibernate (or straight up NHibernate) is System.Data.SqlClient.SqlException: Invalid column name ‘……’. This is normally caused because you did not provide the correct column name when doing your mapping. Lets take a look at the code below which...
-
In an attempt to provide full disclosure I am a complete NOOBIE when it comes to NHibernate. In fact I have only been using it for a few weeks or so. What this means is take everything I say in this post with a grain of salt cause there may be a better, easier way. When exploring more of the really...
-
Yet another post on my learning NHIbernate in public…. In an attempt to provide full disclosure I am a complete NOOBIE when it comes to NHibernate. In fact I have only been using it for a few weeks or so. What this means is take everything I say in this post with a grain of salt cause there may...
-
Yet another post on my learning NHIbernate in public…. In an attempt to provide full disclosure I am a complete NOOBIE when it comes to NHibernate. In fact I have only been using it for a few weeks or so. What this means is take everything I say in this post with a grain of salt cause there may...
-
The key goal to the Fluent-NHibernate project is to allow you to remove yourself from creating .hbm files. However, there are many scenarios where having both may make sense (say in a legacy situation). Because I ran into the need to include a single .hbm file in my solution I thought would share...
-
In an attempt to provide full disclosure I am a complete NOOBIE when it comes to NHibernate. In fact I have only been using it for a few weeks or so. What this means is take everything I say in this post with a grain of salt cause there may be a better, easier way. In a previous post I talked about...
-
Christoper and I have had the privelage of helping Ayende to build the UI for his NHibernate Profiler over the last couple months. Yesterday evening he released the public beta with a 30 day trial version. If you are using NHibernate, get over to the product site and download the beta . This is going...