Sponsored By Aspose - File Format APIs for .NET

Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!

Category Archives: Coding

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 … Continue reading 

Also posted in Data, Featured | 8 Comments

Parsing custom dates using ParseExact

All types in the .Net framework have a Parse method. This takes a string and tries to translate it into a value of the intended type. Like this int i = int.Parse("7");   This will throw an exception when the … Continue reading 

| 4 Comments

XML and Fluent Interfaces

I have posted several times in the past on Fluent Interfaces. I think about Fluent Interfaces much in the same way I think about recursive functions, that is they are not for everything, but when you find the situation that … Continue reading 

Also posted in Uncategorized | 15 Comments

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, … Continue reading 

Also posted in Data, Featured | 1 Comment

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 … Continue reading 

Also posted in Data, Featured | 20 Comments

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 … Continue reading 

Also posted in Data | 6 Comments

ReSharper in the context menu

Last week Jean-Paul demonstrated how to get faster access to ReSharper with the Alt key. He did so by removing the competing inbuilt VS 2005 refactor menu. Also in the context menu ReSharper is masked by the VS refactoring. Here’s … Continue reading 

| 1 Comment

Parameterized searching in a List<T>

The generic List is a pretty powerful class. But finding one or more items is not that easy to grasp at first sight. The Find and the FindAll method take a so called Predicate as a parameter to test the … Continue reading 

| 3 Comments

Pragmatic TDD, (mis-)using the tools to get rids of all those Form1’s

To a lot of you this may sound pretty familiar. A WindowsApplicationx, with a Form1 containing this kind of code private void button1_Click(object sender, EventArgs e) {     label1.Text = MyFunction(textBox1.Text); } Later on in the process the essentials of … Continue reading 

| 3 Comments

AD GetDirectoryEntry on DirectorySearch result <> new DirectoryEntry (Security hits back)

In my last post I described some of my troubles working with Active directory entries from code. Here's another one which increased my baldness. I described using a Directory search object, creating a DirectoryEntry out of that and setting the … Continue reading 

| 3 Comments