-
If you are a TortoiseSVN user and have ever needed to do a diff or edit on multiple versions you may agree with me that the default diff tool that comes out of the box with Tortoise leaves a lot to be desired. But the great news is that Tortoise allows you to setup your own diff/merge tool for usage...
-
Recently I was forced to do full time development on my MacBook because I killed my Windows Laptop (btw, turns out it is a bad idea to spill milk on the keyboard of a laptop… who knew). When doing this I was running Windows7 under VM via Fusion. Everything was working great……until...
-
I know that reflection is nothing new, in fact many people may even call it old hat. However, it does still have its place and can still be very, very useful. The other day I wanted to write a set of tests which would ensure that out developers put the [Serializable] attribute on all our...
-
If you are not familiar with the Code Contracts library which is coming out of Microsoft R&D labs, you need to check this pretty cool little library out. As of Vs2010/.Net 4.0 this library will be making the jump out of the R&D labs. Over the next few blog posts we will be taking...
-
If you are not familiar with the Code Contracts library which is coming out of Microsoft R&D labs, you need to check this pretty cool little library out. As of Vs2010/.Net 4.0 this library will be making the jump out of the R&D labs. Over the next few blog posts we will be taking...
-
Recently (ok, today) I needed to drop down into ADO to call a procedure in our code. I was not too happy with it, but either my lack of knowledge or lack of will to figure it out mandated it. What I needed to do was create a build-insert process and using NHibernate was not the right solution...
-
If you are not familiar with the Code Contracts library which is coming out of Microsoft R&D labs, you need to check this pretty cool little library out. As of Vs2010/.Net 4.0 this library will be making the jump out of the R&D labs. Over the next few blog posts we will be taking a look at the...
-
As we are moving from our old build product (cron jobs which simply call a NAnt script) over to our new build server Hudson there are a TON of things we are trying to add. One of the new features is the ability to perform dry-run merges from our trunk against a branch each night to see how stable/unstable...
-
Today I was needing to create a query which looked a bit like this: SELECT max(this_.SEQUENCE) as y0_, this_.ADMISSION_ID as y1_ FROM PT_Status this_ GROUP BY this_.ADMISSION_ID As you can see, I was trying to do a group by one column and a Max() on another column (legacy DB’s gotta love them)...
-
After a decent amount of effort on our project we have finally setup a standard build script for all of our projects, which is a great thing. But when I was converting on of my projects over to the new format I ran into some odd behavior and it was only happing on my box, not others. Here is more...
-
Pop quiz, what is the difference between Expression.Lt (.Gt, .Eq, etc) and Expression.LtProperty (.GtProperty, .EqProperty, etc)? If you know the answer off the top of your head you win the prize… What is the prize you may ask? NOTHING…. Anyway, I needed to create a criteria query where I wanted to filter...
-
When developing your data access layer with NHibernate you are bound to run into some pretty nasty exceptions. Many times the exceptions may be nasty, but at least they explain the problem in enough detail to allow you to solve the problem. But what do we do when the exceptions do not convey enough information...
-
As I pointed in a prior post ( here ) when trying to learn to harness the power of NHibernate sometimes the ‘simple’ can be a bit daunting at first. For instance how do you create a query with NHibernate that looks a little like the information below? Where .... AND ( ( a = x AND b = true ) or...
-
As you are learning how to use NHibernate many of the ‘common’ things you are used to doing with standard SQL crop up. One of them for me was to have the ability to perform a Count() query. If I were using straight SQL my query may look something like this: SELECT COUNT( FieldNameHere ) FROM...
-
Of the many things that NHibernate is, simple and ‘straight forward’ it is not (at times). Recently I needed to do a SubQuery, so of course the first thing I did was try to Google it. I was able to find quite a few examples on how to create and execute a subquery, but none of them had ALL...