Category Archives: .NET

Simple IDataReader ORM extension methods

Instead of deploying an entire ORM solution and because I’m lazy, I created (read: google-distilled) these simple extension methods to map an IDataReader into a IEnumerable<T>. So basically, I can map any result set (that is an IDataReader) into a … Continue reading

Posted in .NET, C#, extension methods, IDataReader, ORM | Leave a comment

My Regex Function Parser

AND THEY SAID IT COULDN’T BE DONE!… or was that “shouldn’t”? Oh well, in any case, here is a FunctionParser I made to parse text functions. For example, this: would output: “Here is my text. It has some text in … Continue reading

Posted in .NET, C#, regex | Leave a comment

Attribute driven caching in ASP.NET (using Ninject)

So it turns out Ninject is AWESOME. As such, I’ve implemented a completely attribute driven caching scheme for my data service classes. My previous post mentioned a way to condense the code needed to retrieve data from ASP.NET’s data cache. … Continue reading

Posted in .NET, cache, ninject | 8 Comments

Using C# delegates with ASP.NET data caching

When using the data cache in ASP.NET, the standard practice is to:¬† Check if the¬†object exists in the data cache If not, then create/generate object and store the new object in the cache for the next time Return the object … Continue reading

Posted in .NET, C#, cache | 4 Comments